Prev: 51173 Up: Map Next: 51545
51521: Make the game run faster
Used by the routine at Init_Title_Screen.
This routine is called at the start of each phase, and makes it faster than than the previous by decreasing the wait time. This starts at 1280 (slowest) and is decreased by 64 for each call, so things generally open faster.
51521 PUSH AF
51522 PUSH HL
51523 LD HL,(52764)
51526 LD BC,64
51529 AND A
51530 SBC HL,BC
51532 LD A,H
51533 OR L
51534 JR NZ,51539
51536 LD HL,64
51539 LD (52764),HL
51542 POP HL
51543 POP AF
51544 RET
Prev: 51173 Up: Map Next: 51545