Prev: 45651 Up: Map Next: 45758
45750: Play Music Once
Used by the routine at GameMenu.
Plays a tune, but only if this routine has not played one before. Bit 0 of TunePlayedFlag is set the first time and nothing clears it. The tune stops when a key is pressed (see PlayMusic_WaitKey).
The tunes played by this routine are:
Tune Sound
Menu Tune
Input
DE Address of the tune
Play only if TunePlayedFlag is clear.
PlayMusicOnce 45750 LD HL,23505 Point HL at TunePlayedFlag.
45753 LD A,(HL) Return if TunePlayedFlag is set.
45754 AND A
45755 RET NZ
45756 SET 0,(HL) Set bit 0 of TunePlayedFlag.
Continue on to PlayMusic_WaitKey.
View the equivalent code in;
Prev: 45651 Up: Map Next: 45758