Prev: 6353 Up: Map Next: 6391
6386: Delay Loop
Used by the routines at GameOver, HandlerCup and DisplayNightDriver.
Input
B Number of times to execute the delay
Delay 6386 LD HL,$0000 HL=0000 (large counter).
From HL being set above (and for each loop), decrementing 0000 by one gives FFFF.
Delay_Loop 6389 DEC HL Decrease HL by one.
638A LD A,L Loop back to Delay_Loop until HL is zero.
638B OR H
638C JR NZ,Delay_Loop
638E DJNZ Delay_Loop Decrease counter by one and loop back to Delay_Loop until counter is zero.
6390 RET Return.
Prev: 6353 Up: Map Next: 6391