papermario/asm/nonmatchings/code_71CCE0/func_802A12FC_71CFDC.s
Ethan Roseman a2625b01b7 🐟 🐟 🐟 🐟
2021-01-10 22:41:06 +09:00

19 lines
870 B
ArmAsm
Generated

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A12FC_71CFDC
/* 71CFDC 802A12FC 3C048011 */ lui $a0, %hi(gPlayerData)
/* 71CFE0 802A1300 2484F290 */ addiu $a0, $a0, %lo(gPlayerData)
/* 71CFE4 802A1304 90820002 */ lbu $v0, 2($a0)
/* 71CFE8 802A1308 80830003 */ lb $v1, 3($a0)
/* 71CFEC 802A130C 24420001 */ addiu $v0, $v0, 1
/* 71CFF0 802A1310 A0820002 */ sb $v0, 2($a0)
/* 71CFF4 802A1314 00021600 */ sll $v0, $v0, 0x18
/* 71CFF8 802A1318 00021603 */ sra $v0, $v0, 0x18
/* 71CFFC 802A131C 0062182A */ slt $v1, $v1, $v0
/* 71D000 802A1320 90820003 */ lbu $v0, 3($a0)
/* 71D004 802A1324 54600001 */ bnel $v1, $zero, .L802A132C
/* 71D008 802A1328 A0820002 */ sb $v0, 2($a0)
.L802A132C:
/* 71D00C 802A132C 03E00008 */ jr $ra