![]() |
Routines |
| Prev: EBFF | Up: Map | Next: EC0F |
|
Check if this is a new video frame and jump to the game loop if it is.
|
||||
| FrameSyncCheck | EC00 | EXX | Switch to the shadow registers. | |
| EC01 | LD C,A | Save the A register to C' temporarily. | ||
| EC02 | LD A,($785A) | Compare *FrameCount to FRAMES . | ||
| EC05 | LD HL,$5C78 | |||
| EC08 | CP (HL) | |||
| EC09 | LD A,C | Restore A back to its original value. | ||
| EC0A | EXX | Switch back to the normal registers. | ||
| EC0B | RET NZ | Return if this is still the same frame. | ||
| EC0C | JP Game_Loop | Jump to Game_Loop if a new frame has started. | ||
| Prev: EBFF | Up: Map | Next: EC0F |