Prev: BD13 Up: Map Next: BD3A
BD32: Delay
Used by the routines at ShowGameOver, EnterInitials and NewHighScore_Return.
Waits for a while. The time is about B times the number of times that HL can be counted down to zero, which is 10000 if it starts as zero.
Input
B Number of times to repeat the wait
HL Length of each wait
Delay BD32 DEC HL Count down HL until it reaches zero.
BD33 LD A,L
BD34 OR H
BD35 JR NZ,Delay
BD37 DJNZ Delay Loop back until the wait has been repeated B times.
BD39 RET Return.
View the equivalent code in;
Prev: BD13 Up: Map Next: BD3A