ref: 2369bd7ed255e92d8b925e5d8cc07215f0a279ee
parent: 5635c2027a67be28b1d2ce077a5762989bec18b2
author: padz <yenatch@github.com>
date: Thu Oct 11 19:12:42 EDT 2012
add missing instruction
--- a/main.asm
+++ b/main.asm
@@ -74497,6 +74497,7 @@
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 @@
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 @@
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
--- a/wram.asm
+++ b/wram.asm
@@ -86,7 +86,7 @@
; $00 = infinite
ds 1
- ds 24
+ ds 23
CurSFX: ; c2bf
; id of sfx currently playing
--
⑨