summaryrefslogtreecommitdiff
path: root/macros/sound.asm
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2017-03-14 18:23:07 -0700
committerGitHub <noreply@github.com>2017-03-14 18:23:07 -0700
commit5791b7b524fd1c17f7af4dd44472bec7d9941c3e (patch)
tree7bb6ab16b5c74e39882480d562be735360b307e8 /macros/sound.asm
parentb5de46b8902c37562eb05d02f7166e2d3c231224 (diff)
parent8bb81d151ab0647ea4e944f59c5d03967a48b8d9 (diff)
Merge pull request #8 from PikalaxALT/master
Hardcoded pointers
Diffstat (limited to 'macros/sound.asm')
-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
-