@@ -135,47 +135,47 @@ MACRO map_connection_struct
135
135
ENDM
136
136
137
137
MACRO channel_struct
138
- \1MusicID:: dw
139
- \1MusicBank:: db
140
- \1Flags1:: db ; 0:on/off 1:subroutine 2:looping 3:sfx 4:noise 5:rest
141
- \1Flags2:: db ; 0:vibrato on/off 1:pitch slide 2:duty cycle pattern 4:pitch offset
142
- \1Flags3:: db ; 0:vibrato up/down 1:pitch slide direction
143
- \1MusicAddress:: dw
144
- \1LastMusicAddress:: dw
145
- dw
146
- \1NoteFlags:: db ; 5:rest
147
- \1Condition:: db ; conditional jumps
148
- \1DutyCycle:: db ; bits 6-7 (0:12.5% 1:25% 2:50% 3:75%)
149
- \1VolumeEnvelope:: db ; hi:volume lo:fade
150
- \1Frequency:: dw ; 11 bits
151
- \1Pitch:: db ; 0:rest 1-c:note
152
- \1Octave:: db ; 7-0 (0 is highest)
153
- \1Transposition:: db ; raises existing octaves (to repeat phrases)
154
- \1NoteDuration:: db ; frames remaining for the current note
155
- \1Field16 :: ds 1
156
- ds 1
157
- \1LoopCount:: db
158
- \1Tempo:: dw
159
- \1Tracks:: db ; hi:left lo:right
160
- \1DutyCyclePattern:: db
161
- \1VibratoDelayCount:: db ; initialized by \1VibratoDelay
162
- \1VibratoDelay:: db ; number of frames a note plays until vibrato starts
163
- \1VibratoExtent:: db
164
- \1VibratoRate:: db ; hi:frames for each alt lo:frames to the next alt
165
- \1PitchSlideTarget:: dw ; frequency endpoint for pitch slide
166
- \1PitchSlideAmount:: db
138
+ \1MusicID:: dw
139
+ \1MusicBank:: db
140
+ \1Flags1:: db ; 0:on/off 1:subroutine 2:looping 3:sfx 4:noise 5:rest
141
+ \1Flags2:: db ; 0:vibrato on/off 1:pitch slide 2:duty cycle pattern 4:pitch offset
142
+ \1Flags3:: db ; 0:vibrato up/down 1:pitch slide direction
143
+ \1MusicAddress:: dw
144
+ \1LastMusicAddress:: dw
145
+ ds 2
146
+ \1NoteFlags:: db ; 5:rest
147
+ \1Condition:: db ; conditional jumps
148
+ \1DutyCycle:: db ; bits 6-7 (0:12.5% 1:25% 2:50% 3:75%)
149
+ \1VolumeEnvelope:: db ; hi:volume lo:fade
150
+ \1Frequency:: dw ; 11 bits
151
+ \1Pitch:: db ; 0:rest 1-c:note
152
+ \1Octave:: db ; 7-0 (0 is highest)
153
+ \1Transposition:: db ; raises existing octaves (to repeat phrases)
154
+ \1NoteDuration:: db ; frames remaining for the current note
155
+ \1NoteDurationModifier :: db
156
+ ds 1
157
+ \1LoopCount:: db
158
+ \1Tempo:: dw
159
+ \1Tracks:: db ; hi:left lo:right
160
+ \1DutyCyclePattern:: db
161
+ \1VibratoDelayCount:: db ; initialized by \1VibratoDelay
162
+ \1VibratoDelay:: db ; number of frames a note plays until vibrato starts
163
+ \1VibratoExtent:: db
164
+ \1VibratoRate:: db ; hi:frames for each alt lo:frames to the next alt
165
+ \1PitchSlideTarget:: dw ; frequency endpoint for pitch slide
166
+ \1PitchSlideAmount:: db
167
167
\1PitchSlideAmountFraction:: db
168
- \1Field25:: db
169
- ds 1
170
- \1PitchOffset:: dw
171
- \1Field29:: ds 1
172
- \1Field2a:: ds 2
173
- \1Field2c:: ds 1
174
- \1NoteLength:: db ; frames per 16th note
175
- \1Field2e:: ds 1
176
- \1Field2f:: ds 1
177
- \1Field30:: ds 1
178
- ds 1
168
+ \1Field25:: db
169
+ ds 1
170
+ \1PitchOffset:: dw
171
+ \1Field29:: ds 1
172
+ \1Field2a:: ds 2
173
+ \1Field2c:: ds 1
174
+ \1NoteLength:: db ; frames per 16th note
175
+ \1Field2e:: ds 1
176
+ \1Field2f:: ds 1
177
+ \1Field30:: ds 1
178
+ ds 1
179
179
ENDM
180
180
181
181
MACRO battle_tower_struct
0 commit comments