summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmacros/pals.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/macros/pals.asm b/macros/pals.asm
new file mode 100755
index 000000000..44f1f7944
--- /dev/null
+++ b/macros/pals.asm
@@ -0,0 +1,9 @@
+tilepal: MACRO
+; vram bank, pals
+x = \1 << 3
+rept (_NARG +- 1) / 2
+ dn (x | PAL_BG_\3), (x | PAL_BG_\2)
+ shift
+ shift
+endr
+endm