mirror of
https://github.com/pret/pmd-sky.git
synced 2026-03-21 17:25:15 -05:00
Decomped GetExplorerMazeMonster
Decomped by @slaw-22
This commit is contained in:
parent
6b1b4fe706
commit
bc95728e60
|
|
@ -1,21 +1,8 @@
|
|||
.include "asm/macros.inc"
|
||||
.include "main_020590F8.inc"
|
||||
.include "main_02059118.inc"
|
||||
|
||||
.text
|
||||
|
||||
arm_func_start GetExplorerMazeMonster
|
||||
GetExplorerMazeMonster: ; 0x020590F8
|
||||
ldr r1, _02059114 ; =TEAM_MEMBER_TABLE_PTR
|
||||
mov r2, #0x44
|
||||
ldr r1, [r1]
|
||||
add r1, r1, #0x98
|
||||
add r1, r1, #0x9800
|
||||
smlabb r0, r0, r2, r1
|
||||
bx lr
|
||||
.align 2, 0
|
||||
_02059114: .word TEAM_MEMBER_TABLE_PTR
|
||||
arm_func_end GetExplorerMazeMonster
|
||||
|
||||
arm_func_start WriteMonsterInfoToSave
|
||||
WriteMonsterInfoToSave: ; 0x02059118
|
||||
stmdb sp!, {r4, r5, r6, r7, r8, lr}
|
||||
|
|
@ -7,5 +7,6 @@
|
|||
void GetExplorerMazeTeamName(u8 *dest);
|
||||
u64 sub_020590C0(void);
|
||||
void sub_020590DC(u64 param0);
|
||||
struct ground_monster* GetExplorerMazeMonster(s16 entry_number);
|
||||
|
||||
#endif //PMDSKY_MAIN_02059060_H
|
||||
|
|
|
|||
2
main.lsf
2
main.lsf
|
|
@ -130,7 +130,7 @@ Static main
|
|||
Object asm/main_02058F24.o
|
||||
Object src/main_02058FA4.o
|
||||
Object src/main_02059060.o
|
||||
Object asm/main_020590F8.o
|
||||
Object asm/main_02059118.o
|
||||
Object src/dungeon_init_2.o
|
||||
Object asm/main_0206A750.o
|
||||
Object src/main_0206C98C.o
|
||||
|
|
|
|||
|
|
@ -41,3 +41,8 @@ void sub_020590DC(u64 param0)
|
|||
{
|
||||
TEAM_MEMBER_TABLE_PTR->field_0x9878 = param0;
|
||||
}
|
||||
|
||||
struct ground_monster* GetExplorerMazeMonster(s16 entry_number)
|
||||
{
|
||||
return TEAM_MEMBER_TABLE_PTR->explorer_maze_monsters + entry_number;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user