Prev: F3A6 Up: Map Next: F460
F3A7: Routine at F3A7
Used by the routines at Update_Room00 and Invaders_Loop.
Input
Output
F3A7 LD HL,($F3A4)
F3A8 AND H
F3A9 DI
F3AA LD A,(HL)
F3AB CP $FE
F3AD JR NZ,$F3B3
F3AF INC HL
F3B0 INC HL
F3B1 JR $F3AA
F3B3 CP $FF
F3B5 JR NZ,$F3E4
F3B7 LD HL,_f2cd
F3BA LD ($F3A4),HL
F3BD LD HL,(_f3a2)
F3C0 LD A,($F3A1)
F3C3 LD (_f3a0),A
F3C6 INC A
F3C7 CP H
F3C8 JR NZ,$F3CB
F3CA LD A,L
F3CB LD ($F3A1),A
F3CE LD A,($F2FF)
F3D1 ADD A,A
F3D2 LD (_f3a6),A
F3D5 OR A
F3D6 RET Z
F3D7 XOR A
F3D8 LD ($F2FF),A
F3DB LD A,($F2FE)
F3DE NEG
F3E0 LD ($F2FE),A
F3E3 RET
F3E4 LD C,A
F3E5 INC HL
F3E6 LD B,(HL)
F3E7 INC HL
F3E8 LD ($F3A4),HL
F3EB DEC HL
F3EC DEC HL
F3ED LD (BitmapX),BC
F3F1 LD A,($F2FE)
F3F4 ADD A,C
F3F5 LD C,A
F3F6 LD (HL),A
F3F7 CP $E8
F3F9 JR NZ,$F402
F3FB LD A,$01
F3FD LD ($F2FF),A
F400 JR $F406
F402 CP $08
F404 JR Z,$F3FB
F406 LD A,(_f3a6)
F409 ADD A,B
F40A LD B,A
F40B CP $A0
F40D JR C,$F414
F40F LD A,$01
F411 LD (DeathFlag),A
F414 INC HL
F415 LD (HL),B
F416 LD A,(_f3a0)
F419 CALL Bitmap16Draw
F41C LD (BitmapX),BC
F420 LD A,($F3A1)
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
F43C LD A,(HL)
F43D CP $FF
F43F JR Z,$F447
F441 INC HL
F442 INC HL
F443 INC HL
F444 DJNZ $F43C
F446 RET
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,$F458
F455 LD A,$C0
F457 LD (HL),A
F458 LD (DE),A
F459 CALL Bitmap16Draw
F45C RET
F45D RET NZ
F45E LD (HL),L
F45F LD A,D
Prev: F3A6 Up: Map Next: F460