Prev: F5CA Up: Map Next: F5F8
F5EA: Pulse Menu Timing
Used by the routine at MainMenu_SelectOptions.
Pulse the menu by briefly inverting the key-scan wait at FC80 The normal opcode there is JR Z (28), which loops at Wait_KeyWithMenuMusic_Loop while KEY_SCAN reports no key; writing JR NZ (20) inverts that sense for one Wait_KeyWithMenuMusic tick so the highlight flashes, then 28 is restored.
Patch FC80 to JR NZ, wait one tick, then restore JR Z.
Pulse_MenuTiming F5EA LD A,$20 Write 20 (JR NZ) over the opcode at FC80.
F5EC LD ($FC80),A
F5EF CALL Wait_KeyWithMenuMusic Call Wait_KeyWithMenuMusic for one inverted wait tick.
F5F2 LD A,$28 Write 28 (JR Z) back to FC80.
F5F4 LD ($FC80),A
F5F7 RET Return.
Prev: F5CA Up: Map Next: F5F8