summaryrefslogtreecommitdiff
path: root/src/macros
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2021-01-06 22:24:05 -0600
committerdannye <33dannye@gmail.com>2021-01-06 22:24:05 -0600
commit6370bdeaeea201c215c1c667f06d72218c6da6a7 (patch)
tree3fb09b74ae3294f685133dfd25cc8567e68e2c30 /src/macros
parent4b12dbdee2df014892bda9df2554e21d291c4ecf (diff)
parent0dc8af64aab2658a882f73d34bd7a5cc6563f7a1 (diff)
Merge branch 'master' of https://github.com/pret/poketcg
Diffstat (limited to 'src/macros')
-rw-r--r--src/macros/data.asm12
-rw-r--r--src/macros/wram.asm7
2 files changed, 19 insertions, 0 deletions
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
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