summaryrefslogtreecommitdiff
path: root/macros/tilesets.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros/tilesets.asm')
-rwxr-xr-xmacros/tilesets.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/macros/tilesets.asm b/macros/tilesets.asm
new file mode 100755
index 000000000..aeb1d8174
--- /dev/null
+++ b/macros/tilesets.asm
@@ -0,0 +1,15 @@
+; Used in tilesets/*.asm
+
+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