summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-06-21 13:06:58 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-06-21 13:06:58 -0400
commit6dfe2ff14dcda164b9e7882bb9de53b8192b2fbb (patch)
treef2caab12d982f1c96761e42891006e0333230e02
parent92bf25bd0dbd52fcab1c0c504b7d5dafccad9a3e (diff)
Decompile these sprite templates
-rw-r--r--data/data_835B488.s4
-rw-r--r--ld_script.txt3
-rw-r--r--src/battle_anim_mon_movement.c21
3 files changed, 23 insertions, 5 deletions
diff --git a/data/data_835B488.s b/data/data_835B488.s
index 34df69079..c106c46c4 100644
--- a/data/data_835B488.s
+++ b/data/data_835B488.s
@@ -544,10 +544,6 @@ gUnknown_83D414C:: @ 83D414C
gUnknown_83D4164:: @ 83D4164
.incbin "baserom.gba", 0x3D4164, 0x8
- .section .rodata.83D4E4C
-gUnknown_83D4E4C::
- .incbin "baserom.gba", 0x3D4E54, 0x78
-
.section .rodata.83DF09C
gUnknown_83DF09C:: @ 83DF09C
.incbin "baserom.gba", 0x3DF09C, 0x18
diff --git a/ld_script.txt b/ld_script.txt
index 9556fb8fd..b4fd52516 100644
--- a/ld_script.txt
+++ b/ld_script.txt
@@ -138,6 +138,7 @@ SECTIONS {
asm/mail_data.o(.text);
asm/map_name_popup.o(.text);
src/item_menu_icons.o(.text);
+ src/battle_anim_mon_movement.o(.text);
asm/battle_anim_mon_movement.o(.text);
src/item.o(.text);
asm/shop.o(.text);
@@ -409,7 +410,7 @@ SECTIONS {
data/field_weather.o(.rodata);
data/data_835B488.o(.rodata);
src/item_menu_icons.o(.rodata);
- data/data_835B488.o(.rodata.83D4E4C);
+ src/battle_anim_mon_movement.o(.rodata);
src/item.o(.rodata);
data/data_835B488.o(.rodata.83DF09C);
src/heal_location.o(.rodata);
diff --git a/src/battle_anim_mon_movement.c b/src/battle_anim_mon_movement.c
new file mode 100644
index 000000000..30d796758
--- /dev/null
+++ b/src/battle_anim_mon_movement.c
@@ -0,0 +1,21 @@
+#include "global.h"
+
+void sub_80990AC(struct Sprite * sprite);
+void sub_8099144(struct Sprite * sprite);
+void sub_80991B4(struct Sprite * sprite);
+void sub_80992E0(struct Sprite * sprite);
+void sub_8099394(struct Sprite * sprite);
+
+const struct SpriteTemplate gUnknown_83D4E4C[] = {
+ {
+ 0, 0, &gDummyOamData, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, sub_80990AC
+ }, {
+ 0, 0, &gDummyOamData, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, sub_8099144
+ }, {
+ 0, 0, &gDummyOamData, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, sub_80991B4
+ }, {
+ 0, 0, &gDummyOamData, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, sub_80992E0
+ }, {
+ 0, 0, &gDummyOamData, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, sub_8099394
+ }
+};