summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2016-12-06 21:56:48 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2016-12-06 21:56:48 -0500
commit09db40d83edac1f125fdb54669be1707ae3a07f6 (patch)
tree551e949d11ec472c0b1d74ef283c45c60033ac6b /macros
parente935cd885be225472e077466508f815e7c203296 (diff)
Split out audio engine copies
Diffstat (limited to 'macros')
-rwxr-xr-xmacros/sound.asm11
1 files changed, 10 insertions, 1 deletions
diff --git a/macros/sound.asm b/macros/sound.asm
index 8b8de34..2f88716 100755
--- a/macros/sound.asm
+++ b/macros/sound.asm
@@ -1,3 +1,13 @@
+channelcount: MACRO
+nchannels = \1 - 1
+ ENDM
+
+channel: MACRO
+ db (nchannels << 6) | \1
+ dw \2
+nchannels = 0
+ ENDM
+
note: MACRO
dn (\1), (\2) - 1
ENDM
@@ -227,4 +237,3 @@ callchannel: macro
endchannel: macro
db $ff
endm
-