summaryrefslogtreecommitdiff
path: root/asm/macros.inc
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2017-09-28 16:32:23 +0200
committerDizzyEggg <jajkodizzy@wp.pl>2017-09-28 16:32:23 +0200
commit14fcc9ec209a0a910dd0cf870dc835e7b7408e4c (patch)
tree9f36acaa5a718f110f200603038b2942caabf30c /asm/macros.inc
parentbc3b4b4d9ae6ab59c9ce3892b7d287ebd0ee13fa (diff)
parent3c8091393ca12b8eeb26f236a997b70eea5688c6 (diff)
merge with master and move to C
Diffstat (limited to 'asm/macros.inc')
-rw-r--r--asm/macros.inc31
1 files changed, 31 insertions, 0 deletions
diff --git a/asm/macros.inc b/asm/macros.inc
index 642b6a33f..135cfac61 100644
--- a/asm/macros.inc
+++ b/asm/macros.inc
@@ -20,12 +20,43 @@
.2byte \tag
.endm
+ .macro null_obj_tiles
+ obj_tiles 0, 0, 0
+ .endm
+
.macro obj_pal address, tag
.4byte \address
.2byte \tag
.2byte 0@ padding
.endm
+ .macro null_obj_pal
+ obj_pal 0, 0
+ .endm
+
+ .macro paired_pals tag, address
+ .2byte \tag
+ .2byte 0 @ padding
+ .4byte \address
+ .endm
+
+@ For object animation frames.
+ .macro obj_frame_tiles address, uncompressed_size
+ .4byte \address
+ .2byte \uncompressed_size
+ .2byte 0 @ padding
+ .endm
+
+ .macro spr_template tile_tag, pal_tag, oam, anims, images, affine_anims, callback
+ .2byte \tile_tag
+ .2byte \pal_tag
+ .4byte \oam
+ .4byte \anims
+ .4byte \images
+ .4byte \affine_anims
+ .4byte \callback
+ .endm
+
@ Berry trees have a table defining the palette slot used for each of their 5
@ stages. However, the first 2 stages always use the same slots regardless of
@ the type of tree and the slots of the last 3 stages always equal each other.