Inv_Update |
F3A7 |
LD HL,(Inv_DataPtr) |
Inv_Update_0 |
F3AA |
LD A,(HL) |
|
F3AB |
CP $FE |
|
F3AD |
JR NZ,Inv_Update_1 |
|
F3AF |
INC HL |
|
F3B0 |
INC HL |
|
F3B1 |
JR Inv_Update_0 |
Inv_Update_1 |
F3B3 |
CP $FF |
|
F3B5 |
JR NZ,Inv_Update_3 |
|
F3B7 |
LD HL,Invaders_Data |
|
F3BA |
LD (Inv_DataPtr),HL |
|
F3BD |
LD HL,(Inv_StartFrame) |
|
F3C0 |
LD A,(Inv_NextFrame) |
|
F3C3 |
LD (Inv_CurrentFrame),A |
|
F3C6 |
INC A |
|
F3C7 |
CP H |
|
F3C8 |
JR NZ,Inv_Update_2 |
|
F3CA |
LD A,L |
Inv_Update_2 |
F3CB |
LD (Inv_NextFrame),A |
|
F3CE |
LD A,(Invaders_ChangeDirFlag) |
|
F3D1 |
ADD A,A |
|
F3D2 |
LD (Inv___Flag),A |
|
F3D5 |
OR A |
|
F3D6 |
RET Z |
|
F3D7 |
XOR A |
|
F3D8 |
LD (Invaders_ChangeDirFlag),A |
|
F3DB |
LD A,(Invaders_CurrentDir) |
|
F3DE |
NEG |
|
F3E0 |
LD (Invaders_CurrentDir),A |
|
F3E3 |
RET |
Inv_Update_3 |
F3E4 |
LD C,A |
|
F3E5 |
INC HL |
|
F3E6 |
LD B,(HL) |
|
F3E7 |
INC HL |
|
F3E8 |
LD (Inv_DataPtr),HL |
|
F3EB |
DEC HL |
|
F3EC |
DEC HL |
|
F3ED |
LD (BitmapX),BC |
|
F3F1 |
LD A,(Invaders_CurrentDir) |
|
F3F4 |
ADD A,C |
|
F3F5 |
LD C,A |
|
F3F6 |
LD (HL),A |
|
F3F7 |
CP $E8 |
|
F3F9 |
JR NZ,Inv_Update_5 |
Inv_Update_4 |
F3FB |
LD A,$01 |
|
F3FD |
LD (Invaders_ChangeDirFlag),A |
|
F400 |
JR Inv_Update_6 |
Inv_Update_5 |
F402 |
CP $08 |
|
F404 |
JR Z,Inv_Update_4 |
Inv_Update_6 |
F406 |
LD A,(Inv___Flag) |
|
F409 |
ADD A,B |
|
F40A |
LD B,A |
|
F40B |
CP $A0 |
|
F40D |
JR C,Inv_Update_7 |
|
F40F |
LD A,$01 |
|
F411 |
LD (DeathFlag),A |
Inv_Update_7 |
F414 |
INC HL |
|
F415 |
LD (HL),B |
|
F416 |
LD A,(Inv_CurrentFrame) |
|
F419 |
CALL Bitmap16Draw |
|
F41C |
LD (BitmapX),BC |
|
F420 |
LD A,(Inv_NextFrame) |
|
F423 |
CALL Bitmap16Draw |
|
F426 |
LD HL,(BitmapX) |
|
F429 |
LD B,$02 |
|
F42B |
CALL Wally_HitTest |
|
F42E |
LD HL,(BitmapX) |
|
F431 |
LD A,R |
|
F433 |
CP $08 |
|
F435 |
RET NC |
|
F436 |
EX DE,HL |
|
F437 |
LD B,$03 |
|
F439 |
LD HL,Arcade_BombData |
Inv_Update_8 |
F43C |
LD A,(HL) |
|
F43D |
CP $FF |
|
F43F |
JR Z,Inv_Update_9 |
|
F441 |
INC HL |
|
F442 |
INC HL |
|
F443 |
INC HL |
|
F444 |
DJNZ Inv_Update_8 |
|
F446 |
RET |
Inv_Update_9 |
F447 |
LD (HL),E |
|
F448 |
INC HL |
|
F449 |
LD (HL),D |
|
F44A |
INC HL |
|
F44B |
EX DE,HL |
|
F44C |
LD HL,$F45D |
|
F44F |
INC (HL) |
|
F450 |
LD A,(HL) |
|
F451 |
CP $C7 |
|
F453 |
JR NZ,Inv_Update_10 |
|
F455 |
LD A,$C0 |
|
F457 |
LD (HL),A |
Inv_Update_10 |
F458 |
LD (DE),A |
|
F459 |
CALL Bitmap16Draw |
|
F45C |
RET |