Prev: EBE6 Up: Map Next: EBFF
EBF3: Frame Synchronisation
Used by the routine at Handler_Fuel.
WaitForNextFrame EBF3 LD A,($785A) A=*FrameCount.
This entry point is used by the routine at GameInitialisation.
WaitForFrameChange EBF6 LD HL,$5C78 HL=FRAMES.
Wait loop, hold further execution until the frame counter changes to the stored value.
FrameSyncLoop EBF9 CP (HL) Keep jumping back to FrameSyncLoop until FRAMES matches *FrameCount.
EBFA JR NZ,FrameSyncLoop
EBFC JP Game_Loop Jump to Game_Loop.
Prev: EBE6 Up: Map Next: EBFF