![]() |
Routines |
| Prev: 28989 | Up: Map | Next: 29024 |
|
|
||||
|
Called at the beginning of each game loop. Setting a higher pause value will slow the game down.
|
||||
| LimitFrameRate | 29010 | LD A,(24355) | Return if FrameUpdated is is not marked as being updated. | |
| 29013 | AND A | |||
| 29014 | RET NZ | |||
| 29015 | LD HL,256 | Introduce a counter (256) for a slight pause. | ||
| LimitFrameRate_0 | 29018 | DEC HL | Decrease the counter by one. | |
| 29019 | LD A,L | Keep jumping back to LimitFrameRate_0 until the counter is zero. | ||
| 29020 | OR H | |||
| 29021 | JR NZ,LimitFrameRate_0 | |||
| 29023 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 28989 | Up: Map | Next: 29024 |