Prev: 54940 Up: Map Next: 54976
54965: Play Music
Used by the routines at RunGame, ShowVictoryScreen, ShowGameOverScreen and RunHelper.
Plays a tune until its end.
Input
DE Address of the tune
Play each note until 255.
PlayMusic 54965 LD A,(DE) Fetch the next note.
54966 CP 255 Jump to PlayMusic_Done if it is 255.
54968 JR Z,PlayMusic_Done
54970 CALL PlayNote Call PlayNote.
54973 JR PlayMusic Jump to PlayMusic.
This entry point is used by the routine at PlayMusicOnce.
PlayMusic_Done 54975 RET Return.
Start-up Tune
Main Tune
Collected Tune
Game Over Tune
Game Complete Tune
Prev: 54940 Up: Map Next: 54976