F68D: Set up title music to start playing.
Music_Start |
F68D |
LD HL,Music_ScoreSheet |
|
F690 |
LD (Music_NextPtr),HL |
|
F693 |
XOR A |
|
F694 |
LD (Music_NoteRepeat),A |
Music_PlayPart |
F697 |
LD A,(Music_NoteRepeat) |
|
F69A |
OR A |
|
F69B |
JR Z,Music_Start_0 |
|
F69D |
LD BC,(Music_NotePitch) |
|
F6A1 |
LD DE,(Music_NoteDuration) |
|
F6A5 |
JR Music_Start_3 |
Music_Start_0 |
F6A7 |
LD BC,$0BB8 |
|
F6AA |
CALL Pause |
|
F6AD |
LD HL,(Music_NextPtr) |
|
F6B0 |
LD A,(HL) |
|
F6B1 |
OR A |
|
F6B2 |
JR NZ,Music_Start_1 |
|
F6B4 |
LD A,$01 |
|
F6B6 |
LD (Music_EndFlag),A |
|
F6B9 |
RET |
Music_Start_1 |
F6BA |
INC HL |
|
F6BB |
LD (Music_NoteRepeat),A |
|
F6BE |
LD A,(HL) |
|
F6BF |
INC HL |
|
F6C0 |
LD (Music_NextPtr),HL |
|
F6C3 |
CP $FF |
|
F6C5 |
JR NZ,Music_Start_2 |
|
F6C7 |
XOR A |
|
F6C8 |
LD (Music_NoteRepeat),A |
|
F6CB |
LD BC,$3A98 |
|
F6CE |
JP Pause |
Music_Start_2 |
F6D1 |
DEC A |
|
F6D2 |
LD L,A |
|
F6D3 |
LD H,$00 |
|
F6D5 |
ADD HL,HL |
|
F6D6 |
ADD HL,HL |
|
F6D7 |
LD DE,Music_NoteTable |
|
F6DA |
ADD HL,DE |
|
F6DB |
LD C,(HL) |
|
F6DC |
INC HL |
|
F6DD |
LD B,(HL) |
|
F6DE |
LD (Music_NotePitch),BC |
|
F6E2 |
INC HL |
|
F6E3 |
LD E,(HL) |
|
F6E4 |
INC HL |
|
F6E5 |
LD D,(HL) |
|
F6E6 |
LD (Music_NoteDuration),DE |
Music_Start_3 |
F6EA |
CALL Music_PlayNote |
|
F6ED |
LD HL,Music_NoteRepeat |
|
F6F0 |
DEC (HL) |
|
F6F1 |
RET |
Music_NextPtr |
F6F2 |
DEFW $F737 |
Music_NoteRepeat |
F6F4 |
DEFB $00 |
Music_NotePitch |
F6F5 |
DEFW $0118 |
Music_NoteDuration |
F6F7 |
DEFW $0018 |