Prev: 43233 Up: Map Next: 43266
43257: Delay
Used by the routines at Wait and ShowPlayerNumber.
Waits for a time which depends on the value in D.
Input
D The length of the delay
Delay 43257 LD E,255 Set the inner counter to 255.
Delay_Inner 43259 DEC E Decrease the inner counter by one.
43260 JR NZ,Delay_Inner Jump back until none remain.
43262 DEC D Decrease the outer counter by one.
43263 JR NZ,Delay Jump back until none remain.
43265 RET Return.
View the equivalent code in;
Prev: 43233 Up: Map Next: 43266