summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2020-10-08 20:18:00 -0500
committerSeth Barberee <seth.barberee@gmail.com>2020-10-08 20:18:00 -0500
commit86d3dd67977c56d2624f3206ce8c5df4d27014b3 (patch)
tree3b33891c9d0abc724be695041905f6d55e38d3dd /src
parent303d06bf99be430f7205b28468f0b306ccf7f27d (diff)
massive split of file and decomp one func with an attempt on an another
Diffstat (limited to 'src')
-rw-r--r--src/code_8027C84.c (renamed from src/code_8012A18.c)0
-rw-r--r--src/code_8027C84_pre.c86
2 files changed, 86 insertions, 0 deletions
diff --git a/src/code_8012A18.c b/src/code_8027C84.c
index e21400c..e21400c 100644
--- a/src/code_8012A18.c
+++ b/src/code_8027C84.c
diff --git a/src/code_8027C84_pre.c b/src/code_8027C84_pre.c
new file mode 100644
index 0000000..2dbdd66
--- /dev/null
+++ b/src/code_8027C84_pre.c
@@ -0,0 +1,86 @@
+#include "global.h"
+
+
+struct UnkOtherStructTemp
+{
+ /* 0x0 */ u32 unk0;
+ /* 0x4 */ u32 unk4;
+ /* 0x8 */ u32 unk8;
+ /* 0xC */ u32 unkC;
+ /* 0x10 */ u32 unk10;
+ /* 0x14 */ u32 unk14;
+ /* 0x18 */ u32 unk18;
+ /* 0x1C */ u32 unk1C;
+ /* 0x20 */ u16 *unk20;
+ /* 0x24 */ u16 unk24;
+ /* 0x26 */ u16 unk26;
+ /* 0x28 */ u16 unk28;
+ /* 0x2A */ u16 unk2A;
+};
+
+struct UnkStructTemp
+{
+ /* 0x0 */ u32 unk0;
+ /* 0x4 */ u32 unk4;
+ /* 0x8 */ u32 unk8;
+ /* 0xC */ u32 unkC;
+ /* 0x10 */ u32 unk10;
+ /* 0x14 */ u32 unk14;
+ /* 0x18 */ u32 unk18;
+ /* 0x1C */ u32 unk1C;
+ /* 0x20 */ struct UnkOtherStructTemp *unk20;
+ /* 0x24 */ u16 unk24;
+ /* 0x26 */ u16 unk26;
+ /* 0x28 */ u16 unk28;
+ /* 0x2A */ u16 unk2A;
+};
+
+
+extern struct UnkStructTemp *gUnknown_203B2BC;
+u32 sub_801B410();
+void sub_801B450();
+void sub_8027184(u8 r0);
+u32 sub_801EF38(u8 r0);
+struct UnkOtherStructTemp *sub_801F194();
+void sub_8027184(u8 r0);
+void sub_801F214();
+
+void sub_8027C84()
+{
+ u32 temp = sub_801B410();
+ if(temp <= 1)
+ return;
+ if(temp > 3)
+ return;
+ sub_801B450();
+ sub_8027184(0xB);
+}
+
+//void sub_8027CA0()
+//{
+// struct UnkOtherStructTemp *temp_store;
+// u32 temp = sub_801EF38(1);
+// if(temp > 4)
+// return;
+// switch(temp)
+// {
+// case 0:
+// case 1:
+// break;
+// case 2:
+// sub_801F214();
+// sub_8027184(0x2);
+// return;
+// case 3:
+// case 4:
+// temp_store = sub_801F194();
+// gUnknown_203B2BC->unk20 = temp_store;
+// // TODO missing
+// // lsls r0, 3
+// // adds r0, r1, r0
+// // Why are we shifting the pointer by 3?
+// gUnknown_203B2BC->unk24 = temp_store->unk2A;
+// sub_8027184(0x10);
+// break;
+// }
+//}