Prev: 9A9A Up: Map Next: 9AB4
9AA9: Play Music
Used by the routines at ShowTitleScreen, ExplodeShip, GameOver and FinishPlanet.
Plays a tune made of notes, which ends with FF. The keyboard is not checked.
The tunes played by this routine are:
Tune Sound
Title Tune
Game Start Tune
Ship Destroyed Tune
Planet Complete Tune
Game Over Tune
Input
DE Address of the first note
PlayMusic 9AA9 LD A,(DE) Fetch a note.
9AAA CP $FF Jump to PlayMusic_Return if it is the end of the tune.
9AAC JR Z,PlayMusic_Return
9AAE CALL PlayNote Play the note.
9AB1 JR PlayMusic Jump back to PlayMusic for the next note.
This entry point is used by the routine at PlayMusic_WaitKey.
PlayMusic_Return 9AB3 RET Return.
Prev: 9A9A Up: Map Next: 9AB4