Prev: 39578 Up: Map Next: 39604
39593: Play Music
Used by the routines at ShowTitleScreen, ExplodeShip, GameOver and FinishPlanet.
Plays a tune made of notes, which ends with 255. 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 39593 LD A,(DE) Fetch a note.
39594 CP 255 Jump to PlayMusic_Return if it is the end of the tune.
39596 JR Z,PlayMusic_Return
39598 CALL PlayNote Play the note.
39601 JR PlayMusic Jump back to PlayMusic for the next note.
This entry point is used by the routine at PlayMusic_WaitKey.
PlayMusic_Return 39603 RET Return.
Prev: 39578 Up: Map Next: 39604