mirror of
https://github.com/pret/pmd-sky.git
synced 2026-03-21 17:25:15 -05:00
Decomped sub_0205B794
Decomped by @slaw-22
This commit is contained in:
parent
e0decc1e1e
commit
9aa7b568e7
|
|
@ -1,27 +1,8 @@
|
|||
.include "asm/macros.inc"
|
||||
.include "main_0205B794.inc"
|
||||
.include "main_0205B7C8.inc"
|
||||
|
||||
.text
|
||||
|
||||
arm_func_start sub_0205B794
|
||||
sub_0205B794: ; 0x0205B794
|
||||
stmdb sp!, {r4, lr}
|
||||
ldr r3, _0205B7C4 ; =_020B0A54
|
||||
mov r2, #0xb0
|
||||
ldr r3, [r3]
|
||||
mov r4, r0
|
||||
mla lr, r1, r2, r3
|
||||
mov ip, #0xb
|
||||
_0205B7B0:
|
||||
ldmia lr!, {r0, r1, r2, r3}
|
||||
stmia r4!, {r0, r1, r2, r3}
|
||||
subs ip, ip, #1
|
||||
bne _0205B7B0
|
||||
ldmia sp!, {r4, pc}
|
||||
.align 2, 0
|
||||
_0205B7C4: .word _020B0A54
|
||||
arm_func_end sub_0205B794
|
||||
|
||||
arm_func_start sub_0205B7C8
|
||||
sub_0205B7C8: ; 0x0205B7C8
|
||||
stmdb sp!, {r4, lr}
|
||||
|
|
@ -1,6 +1,11 @@
|
|||
#ifndef PMDSKY_MAIN_0205B77C_H
|
||||
#define PMDSKY_MAIN_0205B77C_H
|
||||
|
||||
u32 sub_0205B77C(u32 a);
|
||||
struct unkStruct_020B0A54 {
|
||||
u32 data[44];
|
||||
};
|
||||
|
||||
u32* sub_0205B77C(u32 a);
|
||||
void sub_0205B794(struct unkStruct_020B0A54 *dest, s32 index);
|
||||
|
||||
#endif //PMDSKY_MAIN_0205B77C_H
|
||||
|
|
|
|||
2
main.lsf
2
main.lsf
|
|
@ -152,7 +152,7 @@ Static main
|
|||
Object src/main_0205B6EC.o
|
||||
Object asm/main_0205B738.o
|
||||
Object src/main_0205B77C.o
|
||||
Object asm/main_0205B794.o
|
||||
Object asm/main_0205B7C8.o
|
||||
Object src/dungeon_init_2.o
|
||||
Object asm/main_0206A750.o
|
||||
Object src/main_0206C98C.o
|
||||
|
|
|
|||
|
|
@ -1,8 +1,13 @@
|
|||
#include "main_0205B77C.h"
|
||||
|
||||
extern u32 _020B0A54;
|
||||
extern struct unkStruct_020B0A54 *_020B0A54;
|
||||
|
||||
u32 sub_0205B77C(u32 a)
|
||||
u32* sub_0205B77C(u32 a)
|
||||
{
|
||||
return a * 176 + _020B0A54;
|
||||
return a * 44 + _020B0A54->data;
|
||||
}
|
||||
|
||||
void sub_0205B794(struct unkStruct_020B0A54 *dest, s32 index)
|
||||
{
|
||||
*dest = _020B0A54[index];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user