Prev: 48465 Up: Map Next: 48505
48494: Play Music
Plays a tune, one note at a time with PlayNote, until the 255 terminator is found. Interrupts are disabled while the tune plays.
The tunes played by this routine are:
Tune Sound
Start-up Tune
Main Tune
Poem Tune
Game Over Tune
Input
DE Music data terminated by 255
PlayMusic 48494 DI Disable interrupts.
PlayMusic_Loop 48495 LD A,(DE) Fetch the next note.
48496 CP 255 Jump to PlayMusic_Return if the end of the tune has been reached (255).
48498 JR Z,PlayMusic_Return
48500 CALL PlayNote Play the note.
48503 JR PlayMusic_Loop Jump to PlayMusic_Loop for the next note.
View the equivalent code in;
Prev: 48465 Up: Map Next: 48505