Prev: AF76 Up: Map Next: AF9A
AF8F: Play Music
Used by the routines at CheckTopScore, HandleMenuKeys, FinishTownStage and GiveReward.
Plays a tune, which is a list of notes ending with FF.
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 AF8F LD A,(DE) Fetch the next note.
AF90 CP $FF Jump to PlayMusic_Finish if the terminator has been reached.
AF92 JR Z,PlayMusic_Finish
AF94 CALL PlayNote Play the note.
AF97 JR PlayMusic Go back for the next note.
This entry point is used by the routine at PlayMusicOnce.
PlayMusic_Finish AF99 RET Return.
Prev: AF76 Up: Map Next: AF9A