Handler_FallingBlocks |
E838 |
LD A,(Flag_BaddyInit) |
|
E83B |
OR A |
|
E83C |
JR Z,Handler_FallingBlocks_2 |
|
E83E |
LD IX,Block_Data |
|
E842 |
LD B,$05 |
Handler_FallingBlocks_0 |
E844 |
LD L,(IX+$00) |
|
E847 |
LD H,(IX+$01) |
|
E84A |
LD C,(IX+$02) |
|
E84D |
PUSH BC |
|
E84E |
LD B,$02 |
|
E850 |
CALL Wally_HitTest |
|
E853 |
POP BC |
|
E854 |
INC IX |
|
E856 |
INC IX |
|
E858 |
INC IX |
|
E85A |
LD (BitmapX),HL |
|
E85D |
LD A,$72 |
|
E85F |
CALL Bitmap16Draw |
|
E862 |
LD A,H |
|
E863 |
ADD A,C |
|
E864 |
CP $B0 |
|
E866 |
JR C,Handler_FallingBlocks_1 |
|
E868 |
LD A,R |
|
E86A |
AND $01 |
|
E86C |
INC A |
|
E86D |
LD C,A |
|
E86E |
LD A,$68 |
Handler_FallingBlocks_1 |
E870 |
LD (IX-$02),A |
|
E873 |
LD (IX-$01),C |
|
E876 |
LD (BitmapY),A |
|
E879 |
LD A,$72 |
|
E87B |
CALL Bitmap16Draw |
|
E87E |
DJNZ Handler_FallingBlocks_0 |
|
E880 |
RET |
Handler_FallingBlocks_2 |
E881 |
LD A,$01 |
|
E883 |
LD (Flag_BaddyInit),A |
|
E886 |
LD IX,Block_Data |
|
E88A |
LD B,$05 |
Handler_FallingBlocks_3 |
E88C |
LD L,(IX+$00) |
|
E88F |
LD H,(IX+$01) |
|
E892 |
INC IX |
|
E894 |
INC IX |
|
E896 |
INC IX |
|
E898 |
LD (BitmapX),HL |
|
E89B |
LD A,$72 |
|
E89D |
CALL Bitmap16Draw |
|
E8A0 |
DJNZ Handler_FallingBlocks_3 |
|
E8A2 |
LD A,(Fire_Frame) |
|
E8A5 |
LD HL,$98E0 |
|
E8A8 |
LD (BitmapX),HL |
|
E8AB |
CALL Bitmap16Draw |
|
E8AE |
RET |