Prev: F51A Up: Map Next: F5BE
F5A8: Invaders pause where p = ( ($18 - p) * 32 )
Used by the routine at Invaders_Loop.
Input
Output
Invaders_Pause F5A8 LD A,(Invaders_PauseValue)
F5AB LD B,A
F5AC LD A,$18
F5AE SUB B
F5AF ADD A,A
F5B0 ADD A,A
F5B1 ADD A,A
F5B2 LD L,A
F5B3 LD H,$00
F5B5 ADD HL,HL
F5B6 ADD HL,HL
F5B7 INC HL
Invaders_Pause_0 F5B8 DEC HL
F5B9 LD A,H
F5BA OR L
F5BB JR NZ,Invaders_Pause_0
F5BD RET
Prev: F51A Up: Map Next: F5BE