summaryrefslogtreecommitdiff
path: root/asm/macros.inc
diff options
context:
space:
mode:
authorDiegoisawesome <diego@domoreaweso.me>2017-09-25 16:26:45 -0500
committerDiegoisawesome <diego@domoreaweso.me>2017-09-25 16:27:02 -0500
commitd1efbcd282aa68634b275af25ca1bf187e85cb9e (patch)
tree001ea9498682728c66c16da813170699904d14e7 /asm/macros.inc
parenta57915fa5bd8c2e68bc291a371e66e3cafd7e195 (diff)
Extract scattered baseroms and cleanup
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.