summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2018-11-20 21:46:00 +0100
committermid-kid <esteve.varela@gmail.com>2018-11-20 21:46:00 +0100
commitdac6916c8b7e257d5b35657f4797aada60df8e2a (patch)
tree8b83de8349e94d3b78149115e4afd79bf2a7aa46
parent5bff3a1bffe0481b9189ebd8c426bb47d8c07554 (diff)
Fix usage of endchannel_cmd
-rw-r--r--audio/engine.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/engine.asm b/audio/engine.asm
index 02235dd82..62ba0e48c 100644
--- a/audio/engine.asm
+++ b/audio/engine.asm
@@ -1105,7 +1105,7 @@ ReadNoiseSample:
ld a, [de]
inc de
- cp $ff
+ cp endchannel_cmd
jr z, .quit
and $f
@@ -1136,7 +1136,7 @@ ReadNoiseSample:
ParseMusic:
; parses until a note is read or the song is ended
call GetMusicByte ; store next byte in a
- cp $ff ; is the song over?
+ cp endchannel_cmd ; is the song over?
jr z, .endchannel
cp $d0 ; is it a note?
jr c, .readnote
@@ -1613,7 +1613,7 @@ Music_JumpIf:
ld [hl], d
ret
-MusicEE
+MusicEE:
; conditional jump
; checks a byte in ram corresponding to the current channel
; doesn't seem to be set by any commands