summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2018-06-04 11:35:27 +0200
committermid-kid <esteve.varela@gmail.com>2018-06-04 11:35:27 +0200
commite8f847b5376615341d87bc033a5dd2122a300ec0 (patch)
tree0f8cccd1bf4ca60bdab4845c0a899f35377cabb3 /macros
parent5e9c785b3f5c4638e61a0e58a11b79566a054636 (diff)
Use structure constants for channel_struct
Diffstat (limited to 'macros')
-rw-r--r--macros/wram.asm6
1 files changed, 2 insertions, 4 deletions
diff --git a/macros/wram.asm b/macros/wram.asm
index 469cc1022..6096d2bba 100644
--- a/macros/wram.asm
+++ b/macros/wram.asm
@@ -131,7 +131,7 @@ channel_struct: MACRO
; Addreses are wChannel1 (c101).
\1MusicID:: dw
\1MusicBank:: db
-\1Flags:: db ; 0:on/off 1:subroutine 3:sfx 4:noise 5:rest
+\1Flags1:: db ; 0:on/off 1:subroutine 3:sfx 4:noise 5:rest
\1Flags2:: db ; 0:vibrato on/off 2:duty 4:cry pitch
\1Flags3:: db ; 0:vibrato up/down
\1MusicAddress:: dw
@@ -141,9 +141,7 @@ channel_struct: MACRO
\1Condition:: db ; conditional jumps
\1DutyCycle:: db ; bits 6-7 (0:12.5% 1:25% 2:50% 3:75%)
\1Intensity:: db ; hi:pressure lo:velocity
-\1Frequency:: ; 11 bits
-\1FrequencyLo:: db
-\1FrequencyHi:: db
+\1Frequency:: dw ; 11 bits
\1Pitch:: db ; 0:rest 1-c:note
\1Octave:: db ; 7-0 (0 is highest)
\1PitchOffset:: db ; raises existing octaves (to repeat phrases)