Prev: A7D6 Up: Map Next: A80B
A802: Delay
Waits for a short time that is proportional to D.
Input
D Length of the delay
Delay A802 LD E,$FF Set the inner counter.
Delay_Loop A804 DEC E Count down the inner counter.
A805 JR NZ,Delay_Loop Loop back to Delay_Loop until none remain.
A807 DEC D Count down the outer counter.
A808 JR NZ,Delay Loop back to Delay until none remain.
A80A RET Return.
View the equivalent code in;
Prev: A7D6 Up: Map Next: A80B