diff options
Diffstat (limited to 'macros.asm')
-rwxr-xr-x | macros.asm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm new file mode 100755 index 0000000..a53faf4 --- /dev/null +++ b/macros.asm @@ -0,0 +1,26 @@ +INCLUDE "macros/sound.asm" + +dbw: MACRO + db \1 + dw \2 + ENDM + +dn: MACRO + rept _NARG / 2 + db (\1) << 4 + (\2) + shift + shift + endr + ENDM + +dx: MACRO +x = 8 * ((\1) - 1) + rept \1 + db ((\2) >> x) & $ff +x = x + -8 + endr + ENDM + +bigdw: MACRO ; big-endian word + dx 2, \1 + ENDM |