Match func_80240000_BB59E0 from src/world/area_mim/mim_10/BB59E0.c (#788)

* Match func_80240000_BB59E0 (src/world/area_mim/mim_10/BB59E0.c)

Co-authored by: Matt Kempster <>

* pr
This commit is contained in:
Alex Bates 2022-09-25 23:48:26 +01:00 committed by GitHub
parent 3a8ba482e4
commit dda4b25e35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 18 deletions

View File

@ -5,7 +5,13 @@ static char* N(exit_str_1) = "mim_01";
static char* N(exit_str_2) = "kmr_22";
static char* N(exit_str_3) = "";
INCLUDE_ASM(s32, "world/area_mim/mim_10/BB59E0", func_80240000_BB59E0);
ApiStatus func_80240000_BB59E0(Evt* script, s32 isInitialCall) {
if (gPlayerStatus.position.x < 100.0f) {
return ApiStatus_BLOCK;
} else {
return ApiStatus_DONE2;
}
}
INCLUDE_ASM(s32, "world/area_mim/mim_10/BB59E0", func_80240030_BB5A10);

View File

@ -1,17 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80240000_BB59E0
/* BB59E0 80240000 3C018011 */ lui $at, %hi(gPlayerStatus+0x28)
/* BB59E4 80240004 C422EFF0 */ lwc1 $f2, %lo(gPlayerStatus+0x28)($at)
/* BB59E8 80240008 3C0142C8 */ lui $at, 0x42c8
/* BB59EC 8024000C 44810000 */ mtc1 $at, $f0
/* BB59F0 80240010 00000000 */ nop
/* BB59F4 80240014 4600103C */ c.lt.s $f2, $f0
/* BB59F8 80240018 00000000 */ nop
/* BB59FC 8024001C 45010002 */ bc1t .L80240028
/* BB5A00 80240020 0000102D */ daddu $v0, $zero, $zero
/* BB5A04 80240024 24020002 */ addiu $v0, $zero, 2
.L80240028:
/* BB5A08 80240028 03E00008 */ jr $ra
/* BB5A0C 8024002C 00000000 */ nop