Prev: D69C Up: Map Next: D6C0
D6B5: Play the tune at DE
Used by the routines at START, WON and BUCKET.
Plays the whole tune and returns; nothing else happens meanwhile. Used by START as a game starts, WON and GAME_OVER (in WON) as it ends, and BUCKET when the bucket reaches a quest item.
Input
DE the tune
PLAY_TUNE D6B5 LD A,(DE) $FF ends it; play the note, and the next
D6B6 CP $FF
D6B8 JR Z,PLAY_TUNE_0
D6BA CALL PLAY_NOTE
D6BD JR PLAY_TUNE
This entry point is used by the routine at PLAY_TUNE_ONCE.
PLAY_TUNE_0 D6BF RET DE is left pointing at the $FF
Prev: D69C Up: Map Next: D6C0