2022-06-06 21:25:42 +00:00
|
|
|
MACRO channel_count
|
2020-10-27 02:24:38 +00:00
|
|
|
assert 0 < (\1) && (\1) <= NUM_MUSIC_CHANS, \
|
|
|
|
"channel_count must be 1-{d:NUM_MUSIC_CHANS}"
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF _num_channels = \1 - 1
|
2019-09-02 08:40:58 +00:00
|
|
|
ENDM
|
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO channel
|
2020-10-27 02:24:38 +00:00
|
|
|
assert 0 < (\1) && (\1) <= NUM_CHANNELS, \
|
|
|
|
"channel id must be 1-{d:NUM_CHANNELS}"
|
2019-09-04 03:36:32 +00:00
|
|
|
dn (_num_channels << 2), \1 - 1 ; channel id
|
2019-09-02 08:40:58 +00:00
|
|
|
dw \2 ; address
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF _num_channels = 0
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2017-12-26 17:50:32 +00:00
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO note
|
2019-09-02 08:40:58 +00:00
|
|
|
dn (\1), (\2) - 1 ; pitch, length
|
|
|
|
ENDM
|
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO drum_note
|
2019-09-02 08:40:58 +00:00
|
|
|
note \1, \2 ; drum instrument, length
|
|
|
|
ENDM
|
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO rest
|
2019-09-02 08:40:58 +00:00
|
|
|
note 0, \1 ; length
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 22:26:16 +00:00
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO square_note
|
2019-09-02 08:40:58 +00:00
|
|
|
db \1 ; length
|
2021-03-22 20:41:17 +00:00
|
|
|
if \3 < 0
|
2019-09-04 03:55:51 +00:00
|
|
|
dn \2, %1000 | (\3 * -1) ; volume envelope
|
2021-03-22 20:41:17 +00:00
|
|
|
else
|
2019-09-04 03:55:51 +00:00
|
|
|
dn \2, \3 ; volume envelope
|
2021-03-22 20:41:17 +00:00
|
|
|
endc
|
2015-12-07 16:28:58 +00:00
|
|
|
dw \4 ; frequency
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 22:26:16 +00:00
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO noise_note
|
2019-09-02 08:40:58 +00:00
|
|
|
db \1 ; length
|
2021-03-22 20:41:17 +00:00
|
|
|
if \3 < 0
|
2019-09-04 03:55:51 +00:00
|
|
|
dn \2, %1000 | (\3 * -1) ; volume envelope
|
2021-03-22 20:41:17 +00:00
|
|
|
else
|
2019-09-04 03:55:51 +00:00
|
|
|
dn \2, \3 ; volume envelope
|
2021-03-22 20:41:17 +00:00
|
|
|
endc
|
2015-12-07 16:28:58 +00:00
|
|
|
db \4 ; frequency
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-12-07 16:28:58 +00:00
|
|
|
|
2017-12-12 18:22:19 +00:00
|
|
|
; MusicCommands indexes (see audio/engine.asm)
|
2020-07-08 20:20:15 +00:00
|
|
|
const_def $d0
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF FIRST_MUSIC_CMD EQU const_value
|
2017-12-12 18:22:19 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const octave_cmd ; $d0
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO octave
|
2021-03-22 00:09:34 +00:00
|
|
|
assert 1 <= (\1) && (\1) <= 8, "octave must be 1-8"
|
|
|
|
db octave_cmd + 8 - (\1) ; octave
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 20:20:15 +00:00
|
|
|
const_skip 7 ; all octave values
|
2018-12-09 22:56:13 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const note_type_cmd ; $d8
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO note_type
|
2019-09-02 08:40:58 +00:00
|
|
|
db note_type_cmd
|
|
|
|
db \1 ; note length
|
2021-03-22 20:41:17 +00:00
|
|
|
if _NARG >= 2
|
|
|
|
if \3 < 0
|
2019-09-04 03:55:51 +00:00
|
|
|
dn \2, %1000 | (\3 * -1) ; volume envelope
|
2021-03-22 20:41:17 +00:00
|
|
|
else
|
2019-09-04 03:55:51 +00:00
|
|
|
dn \2, \3 ; volume envelope
|
2021-03-22 20:41:17 +00:00
|
|
|
endc
|
|
|
|
endc
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2019-09-02 08:40:58 +00:00
|
|
|
; only valid on the noise channel
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO drum_speed
|
2019-09-02 08:40:58 +00:00
|
|
|
note_type \1 ; note length
|
|
|
|
ENDM
|
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const transpose_cmd ; $d9
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO transpose
|
2019-09-02 08:40:58 +00:00
|
|
|
db transpose_cmd
|
|
|
|
dn \1, \2 ; num octaves, num pitches
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const tempo_cmd ; $da
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO tempo
|
2015-12-07 03:36:09 +00:00
|
|
|
db tempo_cmd
|
2015-01-20 08:01:23 +00:00
|
|
|
bigdw \1 ; tempo
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const duty_cycle_cmd ; $db
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO duty_cycle
|
2019-09-02 08:40:58 +00:00
|
|
|
db duty_cycle_cmd
|
|
|
|
db \1 ; duty cycle
|
|
|
|
ENDM
|
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const volume_envelope_cmd ; $dc
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO volume_envelope
|
2019-09-02 08:40:58 +00:00
|
|
|
db volume_envelope_cmd
|
2021-03-22 20:41:17 +00:00
|
|
|
if \2 < 0
|
2019-09-04 03:55:51 +00:00
|
|
|
dn \1, %1000 | (\2 * -1) ; volume envelope
|
2021-03-22 20:41:17 +00:00
|
|
|
else
|
2019-09-04 03:55:51 +00:00
|
|
|
dn \1, \2 ; volume envelope
|
2021-03-22 20:41:17 +00:00
|
|
|
endc
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const pitch_sweep_cmd ; $dd
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO pitch_sweep
|
2019-09-02 08:40:58 +00:00
|
|
|
db pitch_sweep_cmd
|
2021-03-22 20:41:17 +00:00
|
|
|
if \2 < 0
|
2019-09-04 03:55:51 +00:00
|
|
|
dn \1, %1000 | (\2 * -1) ; pitch sweep
|
2021-03-22 20:41:17 +00:00
|
|
|
else
|
2019-09-04 03:55:51 +00:00
|
|
|
dn \1, \2 ; pitch sweep
|
2021-03-22 20:41:17 +00:00
|
|
|
endc
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const duty_cycle_pattern_cmd ; $de
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO duty_cycle_pattern
|
2019-09-02 08:40:58 +00:00
|
|
|
db duty_cycle_pattern_cmd
|
|
|
|
db (\1 << 6) | (\2 << 4) | (\3 << 2) | (\4 << 0) ; duty cycle pattern
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const toggle_sfx_cmd ; $df
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO toggle_sfx
|
2019-09-02 08:40:58 +00:00
|
|
|
db toggle_sfx_cmd
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const pitch_slide_cmd ; $e0
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO pitch_slide
|
2019-09-02 08:40:58 +00:00
|
|
|
db pitch_slide_cmd
|
2016-07-29 14:40:54 +00:00
|
|
|
db \1 - 1 ; duration
|
2019-09-02 08:40:58 +00:00
|
|
|
dn 8 - \2, \3 % 12 ; octave, pitch
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const vibrato_cmd ; $e1
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO vibrato
|
2015-12-07 03:36:09 +00:00
|
|
|
db vibrato_cmd
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; delay
|
2021-03-22 20:41:17 +00:00
|
|
|
if _NARG > 2
|
2019-09-04 05:17:10 +00:00
|
|
|
dn \2, \3 ; extent, rate
|
2021-03-22 20:41:17 +00:00
|
|
|
else
|
2019-09-04 05:17:10 +00:00
|
|
|
db \2 ; LEGACY: Support for 1-arg extent
|
2021-03-22 20:41:17 +00:00
|
|
|
endc
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const unknownmusic0xe2_cmd ; $e2
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO unknownmusic0xe2
|
2015-12-07 03:36:09 +00:00
|
|
|
db unknownmusic0xe2_cmd
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; unknown
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const toggle_noise_cmd ; $e3
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO toggle_noise
|
2019-09-02 08:40:58 +00:00
|
|
|
db toggle_noise_cmd
|
2021-03-22 20:41:17 +00:00
|
|
|
if _NARG > 0
|
2020-01-05 21:41:55 +00:00
|
|
|
db \1 ; drum kit
|
2021-03-22 20:41:17 +00:00
|
|
|
endc
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const force_stereo_panning_cmd ; $e4
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO force_stereo_panning
|
2019-09-02 08:40:58 +00:00
|
|
|
db force_stereo_panning_cmd
|
2019-09-08 17:09:43 +00:00
|
|
|
dn %1111 * (1 && \1), %1111 * (1 && \2) ; left enable, right enable
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const volume_cmd ; $e5
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO volume
|
2015-12-07 03:36:09 +00:00
|
|
|
db volume_cmd
|
2021-03-22 20:41:17 +00:00
|
|
|
if _NARG > 1
|
2019-09-04 05:17:10 +00:00
|
|
|
dn \1, \2 ; left volume, right volume
|
2021-03-22 20:41:17 +00:00
|
|
|
else
|
2019-09-04 05:17:10 +00:00
|
|
|
db \1 ; LEGACY: Support for 1-arg volume
|
2021-03-22 20:41:17 +00:00
|
|
|
endc
|
2019-09-02 08:40:58 +00:00
|
|
|
ENDM
|
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const pitch_offset_cmd ; $e6
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO pitch_offset
|
2019-09-02 08:40:58 +00:00
|
|
|
db pitch_offset_cmd
|
|
|
|
bigdw \1 ; pitch offset
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const unknownmusic0xe7_cmd ; $e7
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO unknownmusic0xe7
|
2015-12-07 03:36:09 +00:00
|
|
|
db unknownmusic0xe7_cmd
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; unknown
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const unknownmusic0xe8_cmd ; $e8
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO unknownmusic0xe8
|
2015-12-07 03:36:09 +00:00
|
|
|
db unknownmusic0xe8_cmd
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; unknown
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const tempo_relative_cmd ; $e9
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO tempo_relative
|
2015-12-08 21:06:13 +00:00
|
|
|
db tempo_relative_cmd
|
2019-09-02 08:40:58 +00:00
|
|
|
bigdw \1 ; tempo adjustment
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const restart_channel_cmd ; $ea
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO restart_channel
|
2019-09-02 08:40:58 +00:00
|
|
|
db restart_channel_cmd
|
2015-01-20 08:01:23 +00:00
|
|
|
dw \1 ; address
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const new_song_cmd ; $eb
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO new_song
|
2019-09-02 08:40:58 +00:00
|
|
|
db new_song_cmd
|
2015-01-20 08:01:23 +00:00
|
|
|
bigdw \1 ; id
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const sfx_priority_on_cmd ; $ec
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO sfx_priority_on
|
2019-09-02 08:40:58 +00:00
|
|
|
db sfx_priority_on_cmd
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const sfx_priority_off_cmd ; $ed
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO sfx_priority_off
|
2019-09-02 08:40:58 +00:00
|
|
|
db sfx_priority_off_cmd
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const unknownmusic0xee_cmd ; $ee
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO unknownmusic0xee
|
2015-12-07 03:36:09 +00:00
|
|
|
db unknownmusic0xee_cmd
|
2015-01-20 08:01:23 +00:00
|
|
|
dw \1 ; address
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const stereo_panning_cmd ; $ef
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO stereo_panning
|
2019-09-02 08:40:58 +00:00
|
|
|
db stereo_panning_cmd
|
2019-09-08 17:09:43 +00:00
|
|
|
dn %1111 * (1 && \1), %1111 * (1 && \2) ; left enable, right enable
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const sfx_toggle_noise_cmd ; $f0
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO sfx_toggle_noise
|
2019-09-02 08:40:58 +00:00
|
|
|
db sfx_toggle_noise_cmd
|
2021-03-22 20:41:17 +00:00
|
|
|
if _NARG > 0
|
2020-01-05 21:41:55 +00:00
|
|
|
db \1 ; drum kit
|
2021-03-22 20:41:17 +00:00
|
|
|
endc
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const music0xf1_cmd ; $f1
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO music0xf1
|
2015-12-07 03:36:09 +00:00
|
|
|
db music0xf1_cmd
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const music0xf2_cmd ; $f2
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO music0xf2
|
2015-12-07 03:36:09 +00:00
|
|
|
db music0xf2_cmd
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const music0xf3_cmd ; $f3
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO music0xf3
|
2015-12-07 03:36:09 +00:00
|
|
|
db music0xf3_cmd
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const music0xf4_cmd ; $f4
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO music0xf4
|
2015-12-07 03:36:09 +00:00
|
|
|
db music0xf4_cmd
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const music0xf5_cmd ; $f5
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO music0xf5
|
2015-12-07 03:36:09 +00:00
|
|
|
db music0xf5_cmd
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const music0xf6_cmd ; $f6
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO music0xf6
|
2015-12-07 03:36:09 +00:00
|
|
|
db music0xf6_cmd
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const music0xf7_cmd ; $f7
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO music0xf7
|
2015-12-07 03:36:09 +00:00
|
|
|
db music0xf7_cmd
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const music0xf8_cmd ; $f8
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO music0xf8
|
2015-12-07 03:36:09 +00:00
|
|
|
db music0xf8_cmd
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const unknownmusic0xf9_cmd ; $f9
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO unknownmusic0xf9
|
2015-12-07 03:36:09 +00:00
|
|
|
db unknownmusic0xf9_cmd
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const set_condition_cmd ; $fa
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO set_condition
|
2019-09-02 08:40:58 +00:00
|
|
|
db set_condition_cmd
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; condition
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const sound_jump_if_cmd ; $fb
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO sound_jump_if
|
2019-09-02 08:40:58 +00:00
|
|
|
db sound_jump_if_cmd
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; condition
|
|
|
|
dw \2 ; address
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const sound_jump_cmd ; $fc
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO sound_jump
|
2019-09-02 08:40:58 +00:00
|
|
|
db sound_jump_cmd
|
2015-01-20 08:01:23 +00:00
|
|
|
dw \1 ; address
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const sound_loop_cmd ; $fd
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO sound_loop
|
2019-09-02 08:40:58 +00:00
|
|
|
db sound_loop_cmd
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; count
|
|
|
|
dw \2 ; address
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const sound_call_cmd ; $fe
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO sound_call
|
2019-09-02 08:40:58 +00:00
|
|
|
db sound_call_cmd
|
2015-01-20 08:01:23 +00:00
|
|
|
dw \1 ; address
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const sound_ret_cmd ; $ff
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO sound_ret
|
2019-09-02 08:40:58 +00:00
|
|
|
db sound_ret_cmd
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|