Prev: 28886 Up: Map Next: 28909
28895: Limit Frame Rate
LimitFrameRate 28895 LD A,(24096) Return if FrameUpdated is not marked as being updated.
28898 AND A
28899 RET NZ
28900 LD HL,192 Introduce a counter for a slight pause.
LimitFrameRate_Loop 28903 DEC HL Decrease counter by one.
28904 LD A,L Keep looping back to LimitFrameRate_Loop until the counter is zero.
28905 OR H
28906 JR NZ,LimitFrameRate_Loop
28908 RET Return.
View the equivalent code in;
Prev: 28886 Up: Map Next: 28909