Routines |
Prev: 713D | Up: Map | Next: 7160 |
|
||||
Called at the beginning of each game loop. Setting a higher pause value will slow the game down.
|
||||
LimitFrameRate | 7152 | LD A,($5F23) | Return if FrameUpdated is is not marked as being updated. | |
7155 | AND A | |||
7156 | RET NZ | |||
7157 | LD HL,$0100 | Introduce a counter (0100) for a slight pause. | ||
LimitFrameRate_0 | 715A | DEC HL | Decrease the counter by one. | |
715B | LD A,L | Keep jumping back to LimitFrameRate_0 until the counter is zero. | ||
715C | OR H | |||
715D | JR NZ,LimitFrameRate_0 | |||
715F | RET | Return. | ||
View the equivalent code in;
|
Prev: 713D | Up: Map | Next: 7160 |