mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 04:52:34 +01:00
36 lines
1.7 KiB
ArmAsm
36 lines
1.7 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel AssignAreaFlag
|
|
/* A86F8 80111FF8 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* A86FC 80111FFC 24020001 */ addiu $v0, $zero, 1
|
|
/* A8700 80112000 AFBF0018 */ sw $ra, 0x18($sp)
|
|
/* A8704 80112004 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* A8708 80112008 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* A870C 8011200C 14A20012 */ bne $a1, $v0, .L80112058
|
|
/* A8710 80112010 8C83000C */ lw $v1, 0xc($a0)
|
|
/* A8714 80112014 0C0B1EAF */ jal get_variable
|
|
/* A8718 80112018 8C650000 */ lw $a1, ($v1)
|
|
/* A871C 8011201C 3C048015 */ lui $a0, 0x8015
|
|
/* A8720 80112020 8C8412EC */ lw $a0, 0x12ec($a0)
|
|
/* A8724 80112024 0C04417A */ jal get_entity_by_index
|
|
/* A8728 80112028 0040802D */ daddu $s0, $v0, $zero
|
|
/* A872C 8011202C 0040882D */ daddu $s1, $v0, $zero
|
|
/* A8730 80112030 8E220040 */ lw $v0, 0x40($s1)
|
|
/* A8734 80112034 0200202D */ daddu $a0, $s0, $zero
|
|
/* A8738 80112038 0C05157C */ jal get_area_flag
|
|
/* A873C 8011203C A4440020 */ sh $a0, 0x20($v0)
|
|
/* A8740 80112040 10400004 */ beqz $v0, .L80112054
|
|
/* A8744 80112044 3C032000 */ lui $v1, 0x2000
|
|
/* A8748 80112048 8E220000 */ lw $v0, ($s1)
|
|
/* A874C 8011204C 00431025 */ or $v0, $v0, $v1
|
|
/* A8750 80112050 AE220000 */ sw $v0, ($s1)
|
|
.L80112054:
|
|
/* A8754 80112054 24020002 */ addiu $v0, $zero, 2
|
|
.L80112058:
|
|
/* A8758 80112058 8FBF0018 */ lw $ra, 0x18($sp)
|
|
/* A875C 8011205C 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* A8760 80112060 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* A8764 80112064 03E00008 */ jr $ra
|
|
/* A8768 80112068 27BD0020 */ addiu $sp, $sp, 0x20
|