![]() |
Routines |
| Prev: 26895 | Up: Map | Next: 26921 |
|
|
||||
|
Called at the beginning of each game loop. Setting a higher pause value will slow the game down.
|
||||
| LimitFrameRate | 26907 | LD A,(24021) | Return if FrameUpdated is not marked as being updated. | |
| 26910 | AND A | |||
| 26911 | RET NZ | |||
| 26912 | LD HL,192 | Introduce a counter (0192) for a slight pause. | ||
| LimitFrameRate_Loop | 26915 | DEC HL | Decrease counter by one. | |
| 26916 | LD A,L | Keep jumping back to LimitFrameRate_Loop until the counter is zero. | ||
| 26917 | OR H | |||
| 26918 | JR NZ,LimitFrameRate_Loop | |||
| 26920 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 26895 | Up: Map | Next: 26921 |