diff options
Diffstat (limited to 'arm9')
| -rw-r--r-- | arm9/asm/unk_02025484.s | 41 | ||||
| -rw-r--r-- | arm9/global.inc | 8 | ||||
| -rw-r--r-- | arm9/src/unk_02025484.c | 27 | 
3 files changed, 31 insertions, 45 deletions
| diff --git a/arm9/asm/unk_02025484.s b/arm9/asm/unk_02025484.s deleted file mode 100644 index 5f869289..00000000 --- a/arm9/asm/unk_02025484.s +++ /dev/null @@ -1,41 +0,0 @@ -	.include "asm/macros.inc" -    .include "global.inc" - -	.text - -	thumb_func_start FUN_02025484 -FUN_02025484: ; 0x02025484 -	ldr r3, _0202548C ; =MI_CpuFill8 -	mov r1, #0x0 -	mov r2, #0x24 -	bx r3 -	.balign 4 -_0202548C: .word MI_CpuFill8 - -	thumb_func_start FUN_02025490 -FUN_02025490: ; 0x02025490 -	push {r3-r5, lr} -	add r5, r0, #0x0 -	add r4, r1, #0x0 -	bl FUN_02025484 -	str r4, [r5, #0x0] -	add r0, r5, #0x4 -	pop {r3-r5, pc} - -	thumb_func_start FUN_020254A0 -FUN_020254A0: ; 0x020254A0 -	push {r4, lr} -	add r4, r0, #0x0 -	ldr r0, [r4, #0x0] -	cmp r0, r1 -	beq _020254AE -	bl ErrorHandling -_020254AE: -	add r0, r4, #0x4 -	pop {r4, pc} -	.balign 4 - -	thumb_func_start FUN_020254B4 -FUN_020254B4: ; 0x020254B4 -	ldr r0, [r0, #0x0] -	bx lr diff --git a/arm9/global.inc b/arm9/global.inc index 621d07ec..a2fd15c3 100644 --- a/arm9/global.inc +++ b/arm9/global.inc @@ -1618,10 +1618,6 @@  .extern FUN_020252E8  .extern FUN_020252F4  .extern FUN_020253E0 -.extern FUN_02025484 -.extern FUN_02025490 -.extern FUN_020254A0 -.extern FUN_020254B4  .extern FUN_020254B8  .extern FUN_020254C0  .extern FUN_020254CC @@ -8517,3 +8513,7 @@  .extern CARDi_InitCommon  .extern MonNotFaintedOrEgg  .extern CountAlivePokemon +.extern FUN_02025484 +.extern FUN_02025490 +.extern FUN_020254A0 +.extern FUN_020254B4 diff --git a/arm9/src/unk_02025484.c b/arm9/src/unk_02025484.c new file mode 100644 index 00000000..733ac23a --- /dev/null +++ b/arm9/src/unk_02025484.c @@ -0,0 +1,27 @@ +#include "global.h" +#include "MI_memory.h" +#include "error_handling.h" +#include "unk_02025484.h" + +THUMB_FUNC void FUN_02025484(struct unk_2025484 *r0, u32 r1) +{ +    MI_CpuFill8(r0, 0, sizeof(struct unk_2025484)); +} + +THUMB_FUNC u32 *FUN_02025490(struct unk_2025484 *r0, u32 r1) +{ +    FUN_02025484(r0, r1); +    r0->unk0 = r1; +    return &r0->unk4; +} + +THUMB_FUNC u32 *FUN_020254A0(struct unk_2025484 *r0, u32 r1) +{ +    GF_ASSERT(r0->unk0 == r1); +    return &r0->unk4; +} + +THUMB_FUNC u32 FUN_020254B4(struct unk_2025484 *r0) +{ +    return r0->unk0; +} | 
