diff options
author | Cameron Hall <camthesaxman@users.noreply.github.com> | 2017-09-26 13:45:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-26 13:45:41 -0500 |
commit | 701d53be8dc98d33d73536ac00ebe8db5d506f04 (patch) | |
tree | a932a3eb54c0e230f5ca20b7241fb3d1a04c43ba /asm/macros.inc | |
parent | a57915fa5bd8c2e68bc291a371e66e3cafd7e195 (diff) | |
parent | 60b0fd8b39d1bc5a4692d0ed5610552a13cbf93e (diff) |
Merge pull request #48 from Diegoisawesome/cleanup
Extract scattered baseroms and cleanup
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. |