Prev: 683E Up: Map Next: 6888
6854: Routine at 6854
Used by the routine at 6D87.
LevelStartJingle 6854 LD C,(IX+$06) C=pointer to counter.
6857 INC (IX+$06) Increment the counter by one.
685A LD B,$00 Create an offset from 686A using the counter as the LSB.
685C LD HL,$686A
685F ADD HL,BC
6860 LD D,(HL) D=fetch the next byte from 686A.
6861 LD C,$08 C=08 (note counter).
LevelStartJingle_Loop 6863 CALL PlaySquareWave Call PlaySquareWave.
6866 DEC C Decrease the note counter by one.
6867 JR NZ,LevelStartJingle_Loop Keep looping back to LevelStartJingle_Loop until the note counter is zero.
6869 RET Return.
686A DEFB $80,$80,$80,$80,$80,$80,$80,$80
6872 DEFB $80,$80,$80,$80,$80,$80,$80,$80
687A DEFB $80,$80,$80,$80,$80,$80,$80,$80
This entry point is used by the routine at GamePlayEntry.
GameStartJingle 6882 LD D,$30 D=30.
6884 LD C,$40 C=40.
6886 JR LevelStartJingle_Loop Jump to LevelStartJingle_Loop.
Prev: 683E Up: Map Next: 6888