add missing instruction

This commit is contained in:
padz 2012-10-11 23:12:42 -04:00
parent 5635c2027a
commit 2369bd7ed2
2 changed files with 6 additions and 4 deletions

View File

@ -74497,6 +74497,7 @@ LoadSFX: ; e8c04
ld [$ff00+$14], a ; restart sound (freq hi = 0)
xor a
ld [$c29c], a ; ????
ld [$ff00+$10], a ; sweep = 0
.ch6
ld hl, $c1fe ; ch6 on
bit 0, [hl]
@ -74516,6 +74517,7 @@ LoadSFX: ; e8c04
jr z, .ch8
res 0, [hl]
xor a
ld [$ff00+$1a], a ; sound mode #3 off
ld [$ff00+$1b], a ; length/wavepattern = 0
ld a, $08
ld [$ff00+$1c], a ; envelope = 0
@ -74629,19 +74631,19 @@ ChannelInit: ; e8d5b
xor a
ld hl, $0000
add hl, bc
ld e, $32 ; channel struct length
ld e, Channel2 - Channel1 ; channel struct length
; clear channel struct
.loop
ld [hli], a
dec e
jr nz, .loop
ld hl, $0019 ; note length
ld hl, Channel1NoteLength - Channel1
add hl, bc
xor a
ld [hli], a
inc a
ld [hl], a ; default note length $100
ld hl, $002d ; tempo
ld hl, Channel1Tempo - Channel1
add hl, bc
ld [hl], a ; default tempo $01 (fast)
pop de

View File

@ -86,7 +86,7 @@ MusicLength: ; c2a7
; $00 = infinite
ds 1
ds 24
ds 23
CurSFX: ; c2bf
; id of sfx currently playing