Prev: 55959 Up: Map Next: 55983
55971: Delay Long
Used by the routine at PlayerDeath.
Busy-wait delay: outer loop of 60 iterations, inner loop of 0 (256 cycles) each. Stashes and restores BC.
Delay_Long 55971 PUSH BC Stash BC on the stack.
55972 LD C,60 C=60 (outer loop counter).
Delay_Long_OuterLoop 55974 LD B,0 Inner loop: spin B from 0 (256 iterations per pass).
Delay_Long_InnerLoop 55976 DJNZ Delay_Long_InnerLoop
55978 DEC C Decrease outer counter and loop back to Delay_Long_OuterLoop until zero.
55979 JR NZ,Delay_Long_OuterLoop
55981 POP BC Restore BC from the stack.
55982 RET Return.
Prev: 55959 Up: Map Next: 55983