mirror of
https://github.com/pmret/papermario.git
synced 2024-11-12 14:03:56 +01:00
38 lines
1.5 KiB
ArmAsm
38 lines
1.5 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel SetPlayerFlagBits
|
|
/* 0F6710 802D1D60 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* 0F6714 802D1D64 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 0F6718 802D1D68 3C118011 */ lui $s1, 0x8011
|
|
/* 0F671C 802D1D6C 2631EFC8 */ addiu $s1, $s1, -0x1038
|
|
/* 0F6720 802D1D70 AFBF001C */ sw $ra, 0x1c($sp)
|
|
/* 0F6724 802D1D74 AFB20018 */ sw $s2, 0x18($sp)
|
|
/* 0F6728 802D1D78 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 0F672C 802D1D7C 8C82000C */ lw $v0, 0xc($a0)
|
|
/* 0F6730 802D1D80 8C450004 */ lw $a1, 4($v0)
|
|
/* 0F6734 802D1D84 8C500000 */ lw $s0, ($v0)
|
|
/* 0F6738 802D1D88 0C0B1EAF */ jal get_variable
|
|
/* 0F673C 802D1D8C 0220902D */ daddu $s2, $s1, $zero
|
|
/* 0F6740 802D1D90 10400005 */ beqz $v0, .L802D1DA8
|
|
/* 0F6744 802D1D94 00101827 */ nor $v1, $zero, $s0
|
|
/* 0F6748 802D1D98 8E220000 */ lw $v0, ($s1)
|
|
/* 0F674C 802D1D9C 00501025 */ or $v0, $v0, $s0
|
|
/* 0F6750 802D1DA0 080B476D */ j .L802D1DB4
|
|
/* 0F6754 802D1DA4 AE220000 */ sw $v0, ($s1)
|
|
|
|
.L802D1DA8:
|
|
/* 0F6758 802D1DA8 8E420000 */ lw $v0, ($s2)
|
|
/* 0F675C 802D1DAC 00431024 */ and $v0, $v0, $v1
|
|
/* 0F6760 802D1DB0 AE420000 */ sw $v0, ($s2)
|
|
.L802D1DB4:
|
|
/* 0F6764 802D1DB4 8FBF001C */ lw $ra, 0x1c($sp)
|
|
/* 0F6768 802D1DB8 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* 0F676C 802D1DBC 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 0F6770 802D1DC0 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 0F6774 802D1DC4 24020002 */ addiu $v0, $zero, 2
|
|
/* 0F6778 802D1DC8 03E00008 */ jr $ra
|
|
/* 0F677C 802D1DCC 27BD0020 */ addiu $sp, $sp, 0x20
|
|
|