B939: Prepare Draw 2/ 3 Byte Sprite
PrepDraw23 |
B939 |
CALL GetSpriteA |
|
B93C |
LD HL,($96A0) |
|
B93F |
LD A,L |
|
B940 |
DEC A |
|
B941 |
RLCA |
|
B942 |
AND %00001110 |
|
B944 |
OR %11110000 |
|
B946 |
LD B,A |
|
B947 |
LD A,(DE) |
|
B948 |
INC DE |
|
B949 |
NEG |
|
B94B |
AND %00000111 |
|
B94D |
ADD A,A |
|
B94E |
ADD A,A |
|
B94F |
LD C,A |
|
B950 |
ADD A,A |
|
B951 |
ADD A,C |
|
B952 |
LD C,A |
|
B953 |
LD A,L |
|
B954 |
AND %00000111 |
|
B956 |
LD A,C |
|
B957 |
JR NZ,PrepDraw23_0 |
|
B959 |
ADD A,$06 |
PrepDraw23_0 |
B95B |
LD ($BA13),A |
|
B95E |
LD A,(DE) |
|
B95F |
INC DE |
|
B960 |
LD ($96A3),A |
|
B963 |
CALL ScreenAddress |
|
B966 |
LD C,$00 |
|
B968 |
RET |