Routines |
Prev: D5A0 | Up: Map | Next: D5C7 |
Used by the routine at MenuKeypress.
|
||||
Mostly a clone of InGame_ToggleMusic.
|
||||
ToggleMusic | D5B0 | LD A,($FFF8) | Jump to ToggleMusicOn if *MusicOnOff is equal to 00. | |
D5B3 | CP $00 | |||
D5B5 | JR Z,ToggleMusicOn | |||
D5B7 | LD A,$00 | Write OFF (00) to *MusicOnOff. | ||
D5B9 | LD ($FFF8),A | |||
D5BC | JP MenuKeypress_Loop | Jump to MenuKeypress_Loop. | ||
ToggleMusicOn | D5BF | LD A,$01 | Write ON (01) to *MusicOnOff. | |
D5C1 | LD ($FFF8),A | |||
D5C4 | JP MenuKeypress_Loop | Jump to MenuKeypress_Loop. |
Prev: D5A0 | Up: Map | Next: D5C7 |