mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 13:02:41 +01:00
39 lines
1.7 KiB
ArmAsm
39 lines
1.7 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel NpcSetHomePosToCurrent
|
|
/* 0F3D6C 802CF3BC 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
/* 0F3D70 802CF3C0 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 0F3D74 802CF3C4 0080802D */ daddu $s0, $a0, $zero
|
|
/* 0F3D78 802CF3C8 AFBF0014 */ sw $ra, 0x14($sp)
|
|
/* 0F3D7C 802CF3CC 8E02000C */ lw $v0, 0xc($s0)
|
|
/* 0F3D80 802CF3D0 0C0B1EAF */ jal get_variable
|
|
/* 0F3D84 802CF3D4 8C450000 */ lw $a1, ($v0)
|
|
/* 0F3D88 802CF3D8 0200202D */ daddu $a0, $s0, $zero
|
|
/* 0F3D8C 802CF3DC 0C0B36B0 */ jal func_802CDAC0
|
|
/* 0F3D90 802CF3E0 0040282D */ daddu $a1, $v0, $zero
|
|
/* 0F3D94 802CF3E4 0040202D */ daddu $a0, $v0, $zero
|
|
/* 0F3D98 802CF3E8 1080000F */ beqz $a0, .L802CF428
|
|
/* 0F3D9C 802CF3EC 24020002 */ addiu $v0, $zero, 2
|
|
/* 0F3DA0 802CF3F0 C4800038 */ lwc1 $f0, 0x38($a0)
|
|
/* 0F3DA4 802CF3F4 C4820040 */ lwc1 $f2, 0x40($a0)
|
|
/* 0F3DA8 802CF3F8 4600010D */ trunc.w.s $f4, $f0
|
|
/* 0F3DAC 802CF3FC 44032000 */ mfc1 $v1, $f4
|
|
/* 0F3DB0 802CF400 C480003C */ lwc1 $f0, 0x3c($a0)
|
|
/* 0F3DB4 802CF404 A4830090 */ sh $v1, 0x90($a0)
|
|
/* 0F3DB8 802CF408 4600010D */ trunc.w.s $f4, $f0
|
|
/* 0F3DBC 802CF40C 44032000 */ mfc1 $v1, $f4
|
|
/* 0F3DC0 802CF410 00000000 */ nop
|
|
/* 0F3DC4 802CF414 A4830092 */ sh $v1, 0x92($a0)
|
|
/* 0F3DC8 802CF418 4600110D */ trunc.w.s $f4, $f2
|
|
/* 0F3DCC 802CF41C 44032000 */ mfc1 $v1, $f4
|
|
/* 0F3DD0 802CF420 00000000 */ nop
|
|
/* 0F3DD4 802CF424 A4830094 */ sh $v1, 0x94($a0)
|
|
.L802CF428:
|
|
/* 0F3DD8 802CF428 8FBF0014 */ lw $ra, 0x14($sp)
|
|
/* 0F3DDC 802CF42C 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 0F3DE0 802CF430 03E00008 */ jr $ra
|
|
/* 0F3DE4 802CF434 27BD0018 */ addiu $sp, $sp, 0x18
|
|
|