Prev: A1AB Up: Map Next: A207
A1FF: Pause
A simple delay loop. HL is counted down to zero, which is repeated B times. As HL wraps around when it is zero, every pass after the first one counts through all 10000 values.
Input
B Number of times to count down HL
HL Start value for the first count down
Pause A1FF DEC HL Decrease the delay counter in HL by one.
A200 LD A,L Loop back to Pause until the delay counter in HL is zero.
A201 OR H
A202 JR NZ,Pause
A204 DJNZ Pause Decrease the number of delays in B by one and loop back to Pause until all of the delays have been done.
A206 RET Return.
View the equivalent code in;
Prev: A1AB Up: Map Next: A207