Prev: D69C Up: Map Next: D6C0
D6B5: 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 FF.
PlayMusic D6B5 LD A,(DE) Fetch the next note.
D6B6 CP $FF Jump to PlayMusic_Done if it is FF.
D6B8 JR Z,PlayMusic_Done
D6BA CALL PlayNote Call PlayNote.
D6BD JR PlayMusic Jump to PlayMusic.
This entry point is used by the routine at PlayMusicOnce.
PlayMusic_Done D6BF RET Return.
Start-up Tune
Main Tune
Collected Tune
Game Over Tune
Game Complete Tune
Prev: D69C Up: Map Next: D6C0