Prev: 41387 Up: Map Next: 41479
41471: 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 65536 values.
Input
B Number of times to count down HL
HL Start value for the first count down
Pause 41471 DEC HL Decrease the delay counter in HL by one.
41472 LD A,L Loop back to Pause until the delay counter in HL is zero.
41473 OR H
41474 JR NZ,Pause
41476 DJNZ Pause Decrease the number of delays in B by one and loop back to Pause until all of the delays have been done.
41478 RET Return.
View the equivalent code in;
Prev: 41387 Up: Map Next: 41479