![]() |
Routines |
| Prev: A7D6 | Up: Map | Next: A80B |
|
Used by the routines at CompletePlanet, RunTitleMenu, ShortDelay, RunGame, GameOver, FinishPlanet and SwapPlayers.
Waits for a short time that is proportional to D.
|
||||||||
| 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 |