mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
78 lines
3.5 KiB
ArmAsm
78 lines
3.5 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel CheckActionState
|
|
/* 7E405C 802831DC 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* 7E4060 802831E0 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 7E4064 802831E4 0080802D */ daddu $s0, $a0, $zero
|
|
/* 7E4068 802831E8 AFBF0018 */ sw $ra, 0x18($sp)
|
|
/* 7E406C 802831EC AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 7E4070 802831F0 8E02000C */ lw $v0, 0xc($s0)
|
|
/* 7E4074 802831F4 8C450004 */ lw $a1, 4($v0)
|
|
/* 7E4078 802831F8 0C0B210B */ jal get_float_variable
|
|
/* 7E407C 802831FC 8C510000 */ lw $s1, ($v0)
|
|
/* 7E4080 80283200 0200202D */ daddu $a0, $s0, $zero
|
|
/* 7E4084 80283204 0220282D */ daddu $a1, $s1, $zero
|
|
/* 7E4088 80283208 3C068011 */ lui $a2, 0x8011
|
|
/* 7E408C 8028320C 80C6F07C */ lb $a2, -0xf84($a2)
|
|
/* 7E4090 80283210 4600008D */ trunc.w.s $f2, $f0
|
|
/* 7E4094 80283214 44021000 */ mfc1 $v0, $f2
|
|
/* 7E4098 80283218 00000000 */ nop
|
|
/* 7E409C 8028321C 00C23026 */ xor $a2, $a2, $v0
|
|
/* 7E40A0 80283220 0C0B2026 */ jal set_variable
|
|
/* 7E40A4 80283224 2CC60001 */ sltiu $a2, $a2, 1
|
|
/* 7E40A8 80283228 8FBF0018 */ lw $ra, 0x18($sp)
|
|
/* 7E40AC 8028322C 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 7E40B0 80283230 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 7E40B4 80283234 24020002 */ addiu $v0, $zero, 2
|
|
/* 7E40B8 80283238 03E00008 */ jr $ra
|
|
/* 7E40BC 8028323C 27BD0020 */ addiu $sp, $sp, 0x20
|
|
|
|
/* 7E40C0 80283240 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
/* 7E40C4 80283244 AFB3001C */ sw $s3, 0x1c($sp)
|
|
/* 7E40C8 80283248 0080982D */ daddu $s3, $a0, $zero
|
|
/* 7E40CC 8028324C AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 7E40D0 80283250 0000882D */ daddu $s1, $zero, $zero
|
|
/* 7E40D4 80283254 AFBF0024 */ sw $ra, 0x24($sp)
|
|
/* 7E40D8 80283258 AFB40020 */ sw $s4, 0x20($sp)
|
|
/* 7E40DC 8028325C AFB20018 */ sw $s2, 0x18($sp)
|
|
/* 7E40E0 80283260 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 7E40E4 80283264 8E62000C */ lw $v0, 0xc($s3)
|
|
/* 7E40E8 80283268 8C450004 */ lw $a1, 4($v0)
|
|
/* 7E40EC 8028326C 8C540000 */ lw $s4, ($v0)
|
|
/* 7E40F0 80283270 0C0B1EAF */ jal get_variable
|
|
/* 7E40F4 80283274 0220802D */ daddu $s0, $s1, $zero
|
|
/* 7E40F8 80283278 0040902D */ daddu $s2, $v0, $zero
|
|
.L8028327C:
|
|
/* 7E40FC 8028327C 0C0B11E4 */ jal get_script_by_index
|
|
/* 7E4100 80283280 0200202D */ daddu $a0, $s0, $zero
|
|
/* 7E4104 80283284 10400006 */ beqz $v0, .L802832A0
|
|
/* 7E4108 80283288 26100001 */ addiu $s0, $s0, 1
|
|
/* 7E410C 8028328C 8C42015C */ lw $v0, 0x15c($v0)
|
|
/* 7E4110 80283290 14520004 */ bne $v0, $s2, .L802832A4
|
|
/* 7E4114 80283294 2A020080 */ slti $v0, $s0, 0x80
|
|
/* 7E4118 80283298 080A0CAB */ j .L802832AC
|
|
/* 7E411C 8028329C 24110001 */ addiu $s1, $zero, 1
|
|
|
|
.L802832A0:
|
|
/* 7E4120 802832A0 2A020080 */ slti $v0, $s0, 0x80
|
|
.L802832A4:
|
|
/* 7E4124 802832A4 1440FFF5 */ bnez $v0, .L8028327C
|
|
/* 7E4128 802832A8 00000000 */ nop
|
|
.L802832AC:
|
|
/* 7E412C 802832AC 0260202D */ daddu $a0, $s3, $zero
|
|
/* 7E4130 802832B0 0280282D */ daddu $a1, $s4, $zero
|
|
/* 7E4134 802832B4 0C0B2026 */ jal set_variable
|
|
/* 7E4138 802832B8 0220302D */ daddu $a2, $s1, $zero
|
|
/* 7E413C 802832BC 8FBF0024 */ lw $ra, 0x24($sp)
|
|
/* 7E4140 802832C0 8FB40020 */ lw $s4, 0x20($sp)
|
|
/* 7E4144 802832C4 8FB3001C */ lw $s3, 0x1c($sp)
|
|
/* 7E4148 802832C8 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* 7E414C 802832CC 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 7E4150 802832D0 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 7E4154 802832D4 24020002 */ addiu $v0, $zero, 2
|
|
/* 7E4158 802832D8 03E00008 */ jr $ra
|
|
/* 7E415C 802832DC 27BD0028 */ addiu $sp, $sp, 0x28
|
|
|