Prev: 46249 Up: Map Next: 46277
46266: Play Music
Used by the routines at InitialiseGame, HandleEndingRobotBottom and GameCompleted.
Plays a tune, which cannot be stopped. A tune is a list of notes (see PlayNote) which ends with 255.
The tunes played by this routine are:
Tune Sound
Start-up Tune
Robot Tune
Game Complete Tune
Input
DE Address of the tune
Play each note until 255.
PlayMusic 46266 LD A,(DE) Fetch the next note.
46267 CP 255 Jump to PlayMusic_End if it is 255.
46269 JR Z,PlayMusic_End
46271 CALL PlayNote Call PlayNote.
46274 JR PlayMusic Jump to PlayMusic.
This entry point is used by the routine at PlayMusic_WaitKey.
PlayMusic_End 46276 RET Return.
Prev: 46249 Up: Map Next: 46277