![]() |
Routines |
| Prev: 6353 | Up: Map | Next: 6391 |
|
A pure delay. HL counts down from zero, round through FFFF back to zero again, and this is repeated B times.
|
||||||||
| Delay | 6386 | LD HL,$0000 | Set the delay counter to 00 which counts down through FFFF. | |||||
|
From HL being set above (and for each loop), decrementing 0000 by one gives FFFF.
|
||||||||
| Delay_Loop | 6389 | DEC HL | Decrease the delay counter by one. | |||||
| 638A | LD A,L | Loop back to Delay_Loop until the delay counter is zero. | ||||||
| 638B | OR H | |||||||
| 638C | JR NZ,Delay_Loop | |||||||
| 638E | DJNZ Delay_Loop | Decrease the repeat count by one and loop back to Delay_Loop until the delay has been repeated B times. | ||||||
| 6390 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 6353 | Up: Map | Next: 6391 |