From 4d5fd88d6071465267818b31a77f0fb6e86d9140 Mon Sep 17 00:00:00 2001 From: ElectroDeoxys Date: Wed, 23 Dec 2020 00:38:06 +0000 Subject: Initial disasm of banks 7 and 20 --- src/macros/wram.asm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/macros') diff --git a/src/macros/wram.asm b/src/macros/wram.asm index 8545972..7b8456b 100644 --- a/src/macros/wram.asm +++ b/src/macros/wram.asm @@ -76,3 +76,10 @@ loaded_npc_struct: MACRO \1Field0x0a:: ds 1 \1Field0x0b:: ds 1 ENDM + +sprite_vram_struct: MACRO +\1Valid:: ds 1 +\1ID:: ds 1 +\1TileOffset:: ds 1 +\1TileSize:: ds 1 +ENDM -- cgit v1.2.3 From 0a1e2b2c6600143c848905fd6d1c54a58bfc4329 Mon Sep 17 00:00:00 2001 From: ElectroDeoxys Date: Thu, 24 Dec 2020 16:55:24 +0000 Subject: Identify and unpack frame animation data --- src/macros/data.asm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/macros') diff --git a/src/macros/data.asm b/src/macros/data.asm index 23de208..519468f 100644 --- a/src/macros/data.asm +++ b/src/macros/data.asm @@ -81,6 +81,18 @@ gfx: MACRO dw ($4000 * (BANK(\1) - BANK(CardGraphics)) + (\1 - $4000)) / 8 ENDM +frame_table: MACRO + db BANK(\1) - BANK(AnimData1) ; maybe use better reference for Bank20? + dw \1 +ENDM + +frame_data: MACRO + db \1 ; frame index + db \2 ; anim count + db \3 ; x translation + db \4 ; y translation +ENDM + tx: MACRO dw \1_ ENDM -- cgit v1.2.3