mirror of
https://github.com/pret/pmd-red.git
synced 2026-08-12 12:06:00 -05:00
more decomping of functions
This commit is contained in:
@@ -9,18 +9,6 @@
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_8272760
|
||||
sub_8272760:
|
||||
push {lr}
|
||||
adds r1, r0, 0
|
||||
ldr r0, _08272770
|
||||
bl sub_8272774
|
||||
pop {r0}
|
||||
bx r0
|
||||
.align 2, 0
|
||||
_08272770: .4byte gUnknown_2027370
|
||||
thumb_func_end sub_8272760
|
||||
|
||||
thumb_func_start sub_8272774
|
||||
sub_8272774:
|
||||
push {r4-r7,lr}
|
||||
|
||||
@@ -2565,22 +2565,4 @@ _0800274E:
|
||||
bx r1
|
||||
thumb_func_end sub_8002718
|
||||
|
||||
thumb_func_start sub_8002758
|
||||
sub_8002758:
|
||||
push {lr}
|
||||
adds r2, r0, 0
|
||||
movs r0, 0
|
||||
movs r1, 0x1
|
||||
movs r3, 0x9
|
||||
bl sub_800226C
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_8002758
|
||||
|
||||
thumb_func_start sub_800276C
|
||||
sub_800276C:
|
||||
movs r0, 0
|
||||
bx lr
|
||||
thumb_func_end sub_800276C
|
||||
|
||||
.align 2, 0 @ Don't pad with nop.
|
||||
|
||||
@@ -174,6 +174,7 @@ SECTIONS {
|
||||
{
|
||||
unk_code = .;
|
||||
asm/code_8272724.o(.rodata);
|
||||
src/code_8272724.o(.text);
|
||||
asm/code_8272724.o(.text);
|
||||
unk_code_end = .;
|
||||
}
|
||||
|
||||
17
src/code_8272724.c
Normal file
17
src/code_8272724.c
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "global.h"
|
||||
|
||||
extern void sub_8272774(u32 *r0, u32 r1);
|
||||
extern void sub_8272884(u32 *r0, u32 r1);
|
||||
|
||||
extern u32 gUnknown_2027370; // TODO defined in text.c and join later
|
||||
|
||||
void sub_8272760(u32 r0)
|
||||
{
|
||||
sub_8272774(&gUnknown_2027370, r0);
|
||||
}
|
||||
|
||||
// TODO once sub_8272774 is decomped
|
||||
//void sub_8272870(u32 r0)
|
||||
//{
|
||||
// sub_8272884(&gUnknown_2027370, r0);
|
||||
//}
|
||||
@@ -1,5 +1,17 @@
|
||||
#include "global.h"
|
||||
|
||||
extern void sub_800226C(u8 r0, u8 r1, u32* r2, u8 u3);
|
||||
|
||||
void sub_8002758(u32 *r0)
|
||||
{
|
||||
sub_800226C(0, 0x1, r0, 0x9);
|
||||
}
|
||||
|
||||
u8 sub_800276C(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void nullsub_140(void)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user