match func_80028838

This commit is contained in:
Alex Bates 2020-10-14 17:11:59 +01:00
parent 7731c8c373
commit e068d2848b
No known key found for this signature in database
GPG Key ID: 5E11C2DB78877706
4 changed files with 15 additions and 20 deletions

View File

@ -1,19 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80028838
/* 3C38 80028838 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 3C3C 8002883C AFBF0010 */ sw $ra, 0x10($sp)
/* 3C40 80028840 0C00A1FC */ jal func_800287F0
/* 3C44 80028844 00000000 */ nop
/* 3C48 80028848 8FBF0010 */ lw $ra, 0x10($sp)
/* 3C4C 8002884C 3C01800A */ lui $at, 0x800a
/* 3C50 80028850 A420A6A0 */ sh $zero, -0x5960($at)
/* 3C54 80028854 3C01800A */ lui $at, 0x800a
/* 3C58 80028858 A420A6A2 */ sh $zero, -0x595e($at)
/* 3C5C 8002885C 3C01800A */ lui $at, 0x800a
/* 3C60 80028860 A420A6A4 */ sh $zero, -0x595c($at)
/* 3C64 80028864 3C01800A */ lui $at, 0x800a
/* 3C68 80028868 A420A6A6 */ sh $zero, -0x595a($at)
/* 3C6C 8002886C 03E00008 */ jr $ra
/* 3C70 80028870 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -96,6 +96,10 @@ extern s16 D_800A0944;
extern s32 gGameState;
extern s32 D_8009A650[1];
extern u16 D_8009A6A0;
extern u16 D_8009A6A2;
extern u16 D_8009A6A4;
extern u16 D_8009A6A6;
// curtains
extern f32 D_8009BA90;

View File

@ -24,6 +24,12 @@ void func_800287F0(void) {
}
}
INCLUDE_ASM(s32, "code_3bf0_len_6f0", func_80028838);
void func_80028838(void) {
func_800287F0();
D_8009A6A0 = 0;
D_8009A6A2 = 0;
D_8009A6A4 = 0;
D_8009A6A6 = 0;
}
INCLUDE_ASM(s32, "code_3bf0_len_6f0", update_input);

View File

@ -62,6 +62,10 @@ D_800959D4 = 0x800959D4;
D_8009A5D8 = 0x8009A5D8;
gGameState = 0x8009A600;
D_8009A650 = 0x8009A650;
D_8009A6A0 = 0x8009A6A0;
D_8009A6A2 = 0x8009A6A2;
D_8009A6A4 = 0x8009A6A4;
D_8009A6A6 = 0x8009A6A6;
D_8009BA90 = 0x8009BA90;
D_8009BA94 = 0x8009BA94;