diff options
author | scnorton <scnorton@biociphers.org> | 2017-09-26 18:24:39 -0400 |
---|---|---|
committer | scnorton <scnorton@biociphers.org> | 2017-09-26 18:24:39 -0400 |
commit | d160ca467920d97245c012b8dd0cb8be6d06620a (patch) | |
tree | 294fa7011b22853896dc622d291b0a5be08a752a /asm/macros.inc | |
parent | 0e75d957d675564977b2e442c16822bab390aa2c (diff) | |
parent | 3c8091393ca12b8eeb26f236a997b70eea5688c6 (diff) |
Merge branch 'master' into easy_chat
Diffstat (limited to 'asm/macros.inc')
-rw-r--r-- | asm/macros.inc | 31 |
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. |