Prev: 690F Up: Map Next: 6929
691B: Limit Frame Rate
Called at the beginning of each game loop. Setting a higher pause value will slow the game down.
LimitFrameRate 691B LD A,($5DD5) Return if FrameUpdated is not marked as being updated.
691E AND A
691F RET NZ
6920 LD HL,$00C0 Introduce a counter (00C0) for a slight pause.
LimitFrameRate_Loop 6923 DEC HL Decrease counter by one.
6924 LD A,L Keep jumping back to LimitFrameRate_Loop until the counter is zero.
6925 OR H
6926 JR NZ,LimitFrameRate_Loop
6928 RET Return.
View the equivalent code in;
Prev: 690F Up: Map Next: 6929