Prev: C63D Up: Map Next: C661
C656: Play Music
Used by the routines at StartGame, GameMenu, CheckPlayerDead, GameOver and UpdateLogoPiece.
Plays a tune. Each note is a byte, with the note in bits 0 to 5 (00 is a rest) and the length of the note minus one in bits 6 and 7. The tune ends with FF.
The tunes played by this routine are:
Tune Sound
Main Tune
Menu Selection Tune
Start-up Tune
Life Lost Tune
Game Over Tune
Game Complete Tune
Input
DE Address of the tune
Play each note until FF.
PlayMusic C656 LD A,(DE) Fetch the next note.
C657 CP $FF Jump to PlayMusic_Return if it is FF.
C659 JR Z,PlayMusic_Return
C65B CALL PlayNote Call PlayNote.
C65E JR PlayMusic Jump to PlayMusic.
This entry point is used by the routine at PlayMusicOnce.
PlayMusic_Return C660 RET Return.
Prev: C63D Up: Map Next: C661