Prev: 44918 Up: Map Next: 44954
44943: Play Music
Used by the routines at CheckTopScore, HandleMenuKeys, FinishTownStage and GiveReward.
Plays a tune, which is a list of notes ending with 255.
The tunes played by this routine are:
Tune Sound
Start Game Tune
Reward Tune
Outlaw Shot Tune
Fanfare Tune
Input
DE The address of the tune
PlayMusic 44943 LD A,(DE) Fetch the next note.
44944 CP 255 Jump to PlayMusic_Finish if the terminator has been reached.
44946 JR Z,PlayMusic_Finish
44948 CALL PlayNote Play the note.
44951 JR PlayMusic Go back for the next note.
This entry point is used by the routine at PlayMusicOnce.
PlayMusic_Finish 44953 RET Return.
Prev: 44918 Up: Map Next: 44954