Prev: C63D Up: Map Next: C661
C656: Play the tune at DE
Used by the routines at NEW_GAME, MENU, NEW_LIFE, GAME_OVER and ENDING_PIT_FRONT.
Plays the whole tune and returns; nothing else happens meanwhile. Used by NEW_GAME as a game starts, NEW_LIFE at each new life after the first, GAME_OVER after a game and ENDING_PIT_FRONT at the end of the ending.
Input
DE the tune
PLAY_TUNE C656 LD A,(DE) $FF ends it; play the note, and the next
C657 CP $FF
C659 JR Z,PLAY_TUNE_0
C65B CALL PLAY_NOTE
C65E JR PLAY_TUNE
This entry point is used by the routine at PLAY_TUNE_ONCE.
PLAY_TUNE_0 C660 RET DE is left at the $FF
Prev: C63D Up: Map Next: C661