diff options
author | red031000 <rubenru09@aol.com> | 2020-07-28 19:23:03 +0100 |
---|---|---|
committer | red031000 <rubenru09@aol.com> | 2020-07-28 19:23:15 +0100 |
commit | c04649cf06c21b01d18bfadfdf2f7537f08b8df4 (patch) | |
tree | c74d3c7f48e51542bbb9f3d3b164c855951be2db /arm9/modules | |
parent | 45e607288e3b6bc4898f63ace0d428c79f97f027 (diff) |
start decomping mod63_021DB450
Diffstat (limited to 'arm9/modules')
-rw-r--r-- | arm9/modules/63/asm/mod63_021DB450_asm.s (renamed from arm9/modules/63/asm/mod63_021DB450.s) | 21 | ||||
-rw-r--r-- | arm9/modules/63/include/mod63_021DB450.h | 8 | ||||
-rw-r--r-- | arm9/modules/63/src/mod63_021DB450.c | 13 |
3 files changed, 22 insertions, 20 deletions
diff --git a/arm9/modules/63/asm/mod63_021DB450.s b/arm9/modules/63/asm/mod63_021DB450_asm.s index d93aa5ac..044b2799 100644 --- a/arm9/modules/63/asm/mod63_021DB450.s +++ b/arm9/modules/63/asm/mod63_021DB450_asm.s @@ -1,27 +1,8 @@ .include "asm/macros.inc" .include "global.inc" .section .text - .balign 4, 0 - thumb_func_start MOD63_021DB450 -MOD63_021DB450: ; 0x021DB450 - push {r4, lr} - ldr r3, _021DB470 ; =UNK_021064B8 - mov r2, #0 - ldr r3, [r3] - blx r3 - add r4, r0, #0 - bl FUN_0201327C - cmp r4, #0 - bne _021DB468 - bl ErrorHandling -_021DB468: - lsl r0, r4, #0x10 - lsr r0, r0, #0xd - pop {r4, pc} - nop -_021DB470: .word UNK_021064B8 - thumb_func_end MOD63_021DB450 + .extern MOD63_021DB450 thumb_func_start MOD63_021DB474 MOD63_021DB474: ; 0x021DB474 diff --git a/arm9/modules/63/include/mod63_021DB450.h b/arm9/modules/63/include/mod63_021DB450.h new file mode 100644 index 00000000..df4c6c9e --- /dev/null +++ b/arm9/modules/63/include/mod63_021DB450.h @@ -0,0 +1,8 @@ +#ifndef POKEDIAMOND_MOD63_021DB450_H +#define POKEDIAMOND_MOD63_021DB450_H + +#include "global.h" + +u32 MOD63_021DB450(u32 param0, u32 param1); + +#endif //POKEDIAMOND_MOD63_021DB450_H diff --git a/arm9/modules/63/src/mod63_021DB450.c b/arm9/modules/63/src/mod63_021DB450.c new file mode 100644 index 00000000..d2ce9ef4 --- /dev/null +++ b/arm9/modules/63/src/mod63_021DB450.c @@ -0,0 +1,13 @@ +#include "global.h" +#include "mod63_021DB450.h" + +extern u32 (*UNK_021064B8)(u32 param0, u32 param1, u32 param2); +extern void FUN_0201327C(u32 param0); + +THUMB_FUNC u32 MOD63_021DB450(u32 param0, u32 param1) +{ + u32 res0 = (UNK_021064B8)(param0, param1, 0); + FUN_0201327C(res0); + GF_ASSERT(res0); + return (u32)((u16)res0 * 8); +} |