mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
33 lines
1.3 KiB
ArmAsm
33 lines
1.3 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
|
||
|
glabel get_npc_safe
|
||
|
/* 015F48 8003AB48 0000182D */ daddu $v1, $zero, $zero
|
||
|
/* 015F4C 8003AB4C 3C06800A */ lui $a2, 0x800a
|
||
|
/* 015F50 8003AB50 8CC60B90 */ lw $a2, 0xb90($a2)
|
||
|
.L8003AB54:
|
||
|
/* 015F54 8003AB54 8CC50000 */ lw $a1, ($a2)
|
||
|
/* 015F58 8003AB58 50A00008 */ beql $a1, $zero, .L8003AB7C
|
||
|
/* 015F5C 8003AB5C 24630001 */ addiu $v1, $v1, 1
|
||
|
/* 015F60 8003AB60 8CA20000 */ lw $v0, ($a1)
|
||
|
/* 015F64 8003AB64 50400005 */ beql $v0, $zero, .L8003AB7C
|
||
|
/* 015F68 8003AB68 24630001 */ addiu $v1, $v1, 1
|
||
|
/* 015F6C 8003AB6C 80A200A4 */ lb $v0, 0xa4($a1)
|
||
|
/* 015F70 8003AB70 50440006 */ beql $v0, $a0, .L8003AB8C
|
||
|
/* 015F74 8003AB74 28630040 */ slti $v1, $v1, 0x40
|
||
|
/* 015F78 8003AB78 24630001 */ addiu $v1, $v1, 1
|
||
|
.L8003AB7C:
|
||
|
/* 015F7C 8003AB7C 28620040 */ slti $v0, $v1, 0x40
|
||
|
/* 015F80 8003AB80 1440FFF4 */ bnez $v0, .L8003AB54
|
||
|
/* 015F84 8003AB84 24C60004 */ addiu $a2, $a2, 4
|
||
|
/* 015F88 8003AB88 28630040 */ slti $v1, $v1, 0x40
|
||
|
.L8003AB8C:
|
||
|
/* 015F8C 8003AB8C 10600002 */ beqz $v1, .L8003AB98
|
||
|
/* 015F90 8003AB90 0000102D */ daddu $v0, $zero, $zero
|
||
|
/* 015F94 8003AB94 00A0102D */ daddu $v0, $a1, $zero
|
||
|
.L8003AB98:
|
||
|
/* 015F98 8003AB98 03E00008 */ jr $ra
|
||
|
/* 015F9C 8003AB9C 00000000 */ nop
|
||
|
|