summaryrefslogtreecommitdiff
path: root/macros/tilesets.asm
diff options
context:
space:
mode:
authorRemy Oukaour <remy.oukaour@gmail.com>2017-12-12 20:15:15 -0500
committerRemy Oukaour <remy.oukaour@gmail.com>2017-12-12 20:15:15 -0500
commit78d489733c8da46b901ecb47e82e2fc45498b387 (patch)
tree83cdb195c9d4ed6c6b39e17f97c56ade442d82d4 /macros/tilesets.asm
parent93c32e35806af6c0a8b731c5322ee5df58c797f9 (diff)
parent05ac706f6052ade04a0d258862a705d3f41283bf (diff)
Merge branch 'master' of https://github.com/pret/pokecrystal
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