2015-01-20 14:26:16 -08:00
|
|
|
note: MACRO
|
|
|
|
dn (\1), (\2) - 1
|
|
|
|
ENDM
|
|
|
|
|
|
|
|
sound: macro
|
2015-12-07 08:28:58 -08:00
|
|
|
note \1, \2
|
|
|
|
db \3 ; intensity
|
|
|
|
dw \4 ; frequency
|
2015-01-20 14:26:16 -08:00
|
|
|
endm
|
|
|
|
|
|
|
|
noise: macro
|
2015-12-07 08:28:58 -08:00
|
|
|
note \1, \2 ; duration
|
|
|
|
db \3 ; intensity
|
|
|
|
db \4 ; frequency
|
|
|
|
endm
|
|
|
|
|
|
|
|
musicheader: macro
|
2016-03-01 19:31:21 -08:00
|
|
|
; number of tracks, track idx, address
|
2015-12-07 08:28:58 -08:00
|
|
|
dbw ((\1 - 1) << 6) + (\2 - 1), \3
|
2015-01-20 14:26:16 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-07 09:42:35 -08:00
|
|
|
cry_header: macro
|
|
|
|
dw \1, \2, \3
|
|
|
|
endm
|
|
|
|
|
2017-12-12 10:22:19 -08:00
|
|
|
; MusicCommands indexes (see audio/engine.asm)
|
2015-12-06 19:36:09 -08:00
|
|
|
enum_start $d8
|
2017-12-12 10:22:19 -08:00
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum notetype_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
octave: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db notetype_cmd - (\1)
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
|
|
|
notetype: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db notetype_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; note_length
|
|
|
|
if _NARG >= 2
|
|
|
|
db \2 ; intensity
|
|
|
|
endc
|
|
|
|
endm
|
|
|
|
|
2016-07-29 07:40:54 -07:00
|
|
|
enum pitchoffset_cmd
|
|
|
|
pitchoffset: macro
|
|
|
|
db pitchoffset_cmd
|
|
|
|
dn \1, \2 - 1 ; octave, key
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum tempo_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
tempo: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db tempo_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
bigdw \1 ; tempo
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum dutycycle_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
dutycycle: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db dutycycle_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; duty_cycle
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum intensity_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
intensity: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db intensity_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; intensity
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum soundinput_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
soundinput: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db soundinput_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; input
|
|
|
|
endm
|
|
|
|
|
2016-05-10 13:38:40 -07:00
|
|
|
enum sound_duty_cmd
|
|
|
|
sound_duty: macro
|
|
|
|
db sound_duty_cmd
|
2016-05-10 13:46:46 -07:00
|
|
|
db \1 | (\2 << 2) | (\3 << 4) | (\4 << 6) ; duty sequence
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum togglesfx_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
togglesfx: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db togglesfx_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-05-10 11:33:24 -07:00
|
|
|
enum slidepitchto_cmd
|
|
|
|
slidepitchto: macro
|
|
|
|
db slidepitchto_cmd
|
2016-07-29 07:40:54 -07:00
|
|
|
db \1 - 1 ; duration
|
2015-12-06 19:36:09 -08:00
|
|
|
dn \2, \3 ; octave, pitch
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum vibrato_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
vibrato: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db vibrato_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; delay
|
|
|
|
db \2 ; extent
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum unknownmusic0xe2_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
unknownmusic0xe2: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db unknownmusic0xe2_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; unknown
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum togglenoise_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
togglenoise: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db togglenoise_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; id
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum panning_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
panning: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db panning_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; tracks
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum volume_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
volume: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db volume_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; volume
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum tone_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
tone: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db tone_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
bigdw \1 ; tone
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum unknownmusic0xe7_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
unknownmusic0xe7: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db unknownmusic0xe7_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; unknown
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum unknownmusic0xe8_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
unknownmusic0xe8: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db unknownmusic0xe8_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; unknown
|
|
|
|
endm
|
|
|
|
|
2015-12-08 13:06:13 -08:00
|
|
|
enum tempo_relative_cmd
|
|
|
|
tempo_relative: macro
|
|
|
|
db tempo_relative_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
bigdw \1 ; value
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum restartchannel_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
restartchannel: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db restartchannel_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
dw \1 ; address
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum newsong_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
newsong: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db newsong_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
bigdw \1 ; id
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum sfxpriorityon_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
sfxpriorityon: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db sfxpriorityon_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum sfxpriorityoff_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
sfxpriorityoff: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db sfxpriorityoff_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum unknownmusic0xee_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
unknownmusic0xee: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db unknownmusic0xee_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
dw \1 ; address
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum stereopanning_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
stereopanning: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db stereopanning_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; tracks
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum sfxtogglenoise_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
sfxtogglenoise: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db sfxtogglenoise_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; id
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum music0xf1_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
music0xf1: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db music0xf1_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum music0xf2_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
music0xf2: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db music0xf2_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum music0xf3_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
music0xf3: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db music0xf3_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum music0xf4_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
music0xf4: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db music0xf4_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum music0xf5_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
music0xf5: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db music0xf5_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum music0xf6_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
music0xf6: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db music0xf6_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum music0xf7_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
music0xf7: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db music0xf7_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum music0xf8_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
music0xf8: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db music0xf8_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum unknownmusic0xf9_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
unknownmusic0xf9: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db unknownmusic0xf9_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum setcondition_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
setcondition: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db setcondition_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; condition
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum jumpif_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
jumpif: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db jumpif_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; condition
|
|
|
|
dw \2 ; address
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum jumpchannel_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
jumpchannel: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db jumpchannel_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
dw \1 ; address
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum loopchannel_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
loopchannel: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db loopchannel_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; count
|
|
|
|
dw \2 ; address
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum callchannel_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
callchannel: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db callchannel_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
dw \1 ; address
|
|
|
|
endm
|
|
|
|
|
2015-12-06 19:36:09 -08:00
|
|
|
enum endchannel_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
endchannel: macro
|
2015-12-06 19:36:09 -08:00
|
|
|
db endchannel_cmd
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|