Prev: 42966 Up: Map Next: 43019
43010: Delay
Waits for a short time that is proportional to D.
Input
D Length of the delay
Delay 43010 LD E,255 Set the inner counter.
Delay_Loop 43012 DEC E Count down the inner counter.
43013 JR NZ,Delay_Loop Loop back to Delay_Loop until none remain.
43015 DEC D Count down the outer counter.
43016 JR NZ,Delay Loop back to Delay until none remain.
43018 RET Return.
View the equivalent code in;
Prev: 42966 Up: Map Next: 43019