Prev: 64942 Up: Map Next: 65034
65003: Play Menu Music Coda
Used by the routine at Continue_MenuMusicTick.
Play coda notes from the table at MenuMusic_CodaNoteTable via the ROM beeper.
Play_MenuMusicCoda 65003 LD E,B Point DE at offset B and HL at MenuMusic_CodaNoteTable.
65004 LD D,0
65006 LD HL,65059
65009 ADC HL,DE Add the offset into HL.
65011 LD A,(HL) Fetch the note length into B.
65012 LD B,A
65013 LD HL,3 Point HL at the starting pitch (0003).
Sound each coda step through Sound_CodaBeep.
Play_MenuMusicCoda_Loop 65016 PUSH BC Stash the remaining note count on the stack.
65017 LD DE,1 Load DE with pitch step 0001.
65020 PUSH HL Stash the current pitch on the stack.
65021 CALL Sound_CodaBeep Call Sound_CodaBeep to beep at this pitch.
65024 POP HL Restore the pitch into HL.
65025 LD DE,255 Raise the pitch by 0255.
65028 ADC HL,DE
65030 POP BC Restore the remaining note count.
65031 DJNZ Play_MenuMusicCoda_Loop Decrease B and loop to Play_MenuMusicCoda_Loop while notes remain.
65033 RET Return.
Prev: 64942 Up: Map Next: 65034