summaryrefslogtreecommitdiff
path: root/macros/tilesets.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros/tilesets.asm')
-rwxr-xr-xmacros/tilesets.asm13
1 files changed, 13 insertions, 0 deletions
diff --git a/macros/tilesets.asm b/macros/tilesets.asm
new file mode 100755
index 000000000..6a233254e
--- /dev/null
+++ b/macros/tilesets.asm
@@ -0,0 +1,13 @@
+tilepal: MACRO
+; vram bank, pals
+x = \1 << OAM_TILE_BANK
+rept (_NARG +- 1) / 2
+ dn (x | PAL_BG_\3), (x | PAL_BG_\2)
+ shift
+ shift
+endr
+endm
+
+tilecoll: MACRO
+ db COLL_\1, COLL_\2, COLL_\3, COLL_\4
+endm