![]() |
Routines |
| Prev: 60415 | Up: Map | Next: 60431 |
|
Check if this is a new video frame and jump to the game loop if it is.
|
||||
| FrameSyncCheck | 60416 | EXX | Switch to the shadow registers. | |
| 60417 | LD C,A | Save the A register to C' temporarily. | ||
| 60418 | LD A,(30810) | Compare *FrameCount to FRAMES . | ||
| 60421 | LD HL,23672 | |||
| 60424 | CP (HL) | |||
| 60425 | LD A,C | Restore A back to its original value. | ||
| 60426 | EXX | Switch back to the normal registers. | ||
| 60427 | RET NZ | Return if this is still the same frame. | ||
| 60428 | JP Game_Loop | Jump to Game_Loop if a new frame has started. | ||
| Prev: 60415 | Up: Map | Next: 60431 |