Fix usage of endchannel_cmd

This commit is contained in:
mid-kid 2018-11-20 21:46:00 +01:00
parent 5bff3a1bff
commit dac6916c8b
1 changed files with 3 additions and 3 deletions

View File

@ -1105,7 +1105,7 @@ ReadNoiseSample:
ld a, [de] ld a, [de]
inc de inc de
cp $ff cp endchannel_cmd
jr z, .quit jr z, .quit
and $f and $f
@ -1136,7 +1136,7 @@ ReadNoiseSample:
ParseMusic: ParseMusic:
; parses until a note is read or the song is ended ; parses until a note is read or the song is ended
call GetMusicByte ; store next byte in a call GetMusicByte ; store next byte in a
cp $ff ; is the song over? cp endchannel_cmd ; is the song over?
jr z, .endchannel jr z, .endchannel
cp $d0 ; is it a note? cp $d0 ; is it a note?
jr c, .readnote jr c, .readnote
@ -1613,7 +1613,7 @@ Music_JumpIf:
ld [hl], d ld [hl], d
ret ret
MusicEE MusicEE:
; conditional jump ; conditional jump
; checks a byte in ram corresponding to the current channel ; checks a byte in ram corresponding to the current channel
; doesn't seem to be set by any commands ; doesn't seem to be set by any commands