Prev: A8E1 Up: Map Next: A902
A8F9: 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 A8F9 LD E,$FF Set the inner counter to FF.
Delay_Inner A8FB DEC E Decrease the inner counter by one.
A8FC JR NZ,Delay_Inner Jump back until none remain.
A8FE DEC D Decrease the outer counter by one.
A8FF JR NZ,Delay Jump back until none remain.
A901 RET Return.
View the equivalent code in;
Prev: A8E1 Up: Map Next: A902