Prev: 70DF Up: Map Next: 7113
70ED: Frame Update
Used by the routine at MainLoop_NewPass.
Called from the main loop when a new frame has started. It does a "fast pass" over the first four objects (Robbie, the spray can and the two weapons) so that they are updated once per frame, and then returns to the slow pass. It does this by changing the code at 713C so that the pass ends after the weapons, and at 714F so that the end of the pass jumps to ResetModifiedInFrame, and then running the main loop from MainLoop.
FrameUpdate 70ED DI Disable interrupts.
70EE LD A,($5C78) Update LastFrame with FRAMES.
70F1 LD ($5E1F),A
70F4 LD A,$01 Set FrameUpdated as "being updated" (i.e. 01).
70F6 LD ($5E20),A
70F9 PUSH IX Stash IX on the stack.
70FB LD HL,$5E8C Write State_Flower to 713D.
70FE LD ($713D),HL
7101 LD A,$C3 Write C3 to 714F and ResetModifiedInFrame to 7150, i.e. JP ResetModifiedInFrame.
7103 LD ($714F),A
7106 LD HL,$7125
7109 LD ($7150),HL
710C LD IX,$5E6C IX=State_Robbie_Active.
7110 JP MainLoop Jump to MainLoop.
View the equivalent code in;
Prev: 70DF Up: Map Next: 7113