From 77b8ff337866f96597224becffc358d99a243b6e Mon Sep 17 00:00:00 2001 From: Henny022p Date: Mon, 15 Feb 2021 09:00:02 +0100 Subject: [PATCH] matched sub_0807DF50 --- asm/code_0807CC3C.s | 17 ----------------- linker.ld | 1 + src/code_0807CC3C.c | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 17 deletions(-) create mode 100644 src/code_0807CC3C.c diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index fa09e5b8..b05ddf0a 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -2197,20 +2197,3 @@ sub_0807DF38: @ 0x0807DF38 .align 2, 0 _0807DF48: .4byte gUnk_0200AF00 _0807DF4C: .4byte gUnk_02034490 - - thumb_func_start sub_0807DF50 -sub_0807DF50: @ 0x0807DF50 - push {lr} - ldr r0, _0807DF6C @ =gUnk_02034490 - movs r1, #0 - strb r1, [r0] - ldr r0, _0807DF70 @ =gUnk_0200AF00 - strb r1, [r0, #1] - movs r0, #0 - bl sub_0801C4A0 - bl sub_080791D0 - bl sub_08079184 - pop {pc} - .align 2, 0 -_0807DF6C: .4byte gUnk_02034490 -_0807DF70: .4byte gUnk_0200AF00 diff --git a/linker.ld b/linker.ld index 528c2783..8b282a19 100644 --- a/linker.ld +++ b/linker.ld @@ -676,6 +676,7 @@ SECTIONS { src/flags.o(.text); src/save.o(.text); asm/code_0807CC3C.o(.text); + src/code_0807CC3C.o(.text); src/executeScriptCommandSet.o(.text); asm/code_0807F0D8.o(.text); src/code_0808091C.o(.text); diff --git a/src/code_0807CC3C.c b/src/code_0807CC3C.c new file mode 100644 index 00000000..13136574 --- /dev/null +++ b/src/code_0807CC3C.c @@ -0,0 +1,14 @@ +#include "global.h" +#include "structures.h" +#include "functions.h" + +extern void sub_0801C4A0(int arg0); + +void sub_0807DF50() +{ + gUnk_02034490[0] = 0; + gUnk_0200AF00.filler0[1] = 0; + sub_0801C4A0(0); + sub_080791D0(); + sub_08079184(); +} \ No newline at end of file