more 197F40

This commit is contained in:
Ethan Roseman 2020-11-28 18:36:42 -05:00
parent c1e70735f0
commit 92905142aa
13 changed files with 239 additions and 523 deletions

View File

@ -1,31 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel GetActorFlags
/* 19B800 8026CF20 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 19B804 8026CF24 AFB10014 */ sw $s1, 0x14($sp)
/* 19B808 8026CF28 0080882D */ daddu $s1, $a0, $zero
/* 19B80C 8026CF2C AFBF0018 */ sw $ra, 0x18($sp)
/* 19B810 8026CF30 AFB00010 */ sw $s0, 0x10($sp)
/* 19B814 8026CF34 8E30000C */ lw $s0, 0xc($s1)
/* 19B818 8026CF38 8E050000 */ lw $a1, ($s0)
/* 19B81C 8026CF3C 0C0B1EAF */ jal get_variable
/* 19B820 8026CF40 26100004 */ addiu $s0, $s0, 4
/* 19B824 8026CF44 0040202D */ daddu $a0, $v0, $zero
/* 19B828 8026CF48 2402FF81 */ addiu $v0, $zero, -0x7f
/* 19B82C 8026CF4C 14820002 */ bne $a0, $v0, .L8026CF58
/* 19B830 8026CF50 00000000 */ nop
/* 19B834 8026CF54 8E240148 */ lw $a0, 0x148($s1)
.L8026CF58:
/* 19B838 8026CF58 0C09A75B */ jal get_actor
/* 19B83C 8026CF5C 8E100000 */ lw $s0, ($s0)
/* 19B840 8026CF60 0220202D */ daddu $a0, $s1, $zero
/* 19B844 8026CF64 8C460000 */ lw $a2, ($v0)
/* 19B848 8026CF68 0C0B2026 */ jal set_variable
/* 19B84C 8026CF6C 0200282D */ daddu $a1, $s0, $zero
/* 19B850 8026CF70 8FBF0018 */ lw $ra, 0x18($sp)
/* 19B854 8026CF74 8FB10014 */ lw $s1, 0x14($sp)
/* 19B858 8026CF78 8FB00010 */ lw $s0, 0x10($sp)
/* 19B85C 8026CF7C 24020002 */ addiu $v0, $zero, 2
/* 19B860 8026CF80 03E00008 */ jr $ra
/* 19B864 8026CF84 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,42 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel GetPartEventFlags
/* 19BD68 8026D488 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 19BD6C 8026D48C AFB20018 */ sw $s2, 0x18($sp)
/* 19BD70 8026D490 0080902D */ daddu $s2, $a0, $zero
/* 19BD74 8026D494 AFBF001C */ sw $ra, 0x1c($sp)
/* 19BD78 8026D498 AFB10014 */ sw $s1, 0x14($sp)
/* 19BD7C 8026D49C AFB00010 */ sw $s0, 0x10($sp)
/* 19BD80 8026D4A0 8E51000C */ lw $s1, 0xc($s2)
/* 19BD84 8026D4A4 8E250000 */ lw $a1, ($s1)
/* 19BD88 8026D4A8 0C0B1EAF */ jal get_variable
/* 19BD8C 8026D4AC 26310004 */ addiu $s1, $s1, 4
/* 19BD90 8026D4B0 0040802D */ daddu $s0, $v0, $zero
/* 19BD94 8026D4B4 2402FF81 */ addiu $v0, $zero, -0x7f
/* 19BD98 8026D4B8 16020002 */ bne $s0, $v0, .L8026D4C4
/* 19BD9C 8026D4BC 00000000 */ nop
/* 19BDA0 8026D4C0 8E500148 */ lw $s0, 0x148($s2)
.L8026D4C4:
/* 19BDA4 8026D4C4 8E250000 */ lw $a1, ($s1)
/* 19BDA8 8026D4C8 26310004 */ addiu $s1, $s1, 4
/* 19BDAC 8026D4CC 0C0B1EAF */ jal get_variable
/* 19BDB0 8026D4D0 0240202D */ daddu $a0, $s2, $zero
/* 19BDB4 8026D4D4 0200202D */ daddu $a0, $s0, $zero
/* 19BDB8 8026D4D8 8E310000 */ lw $s1, ($s1)
/* 19BDBC 8026D4DC 0C09A75B */ jal get_actor
/* 19BDC0 8026D4E0 0040802D */ daddu $s0, $v0, $zero
/* 19BDC4 8026D4E4 0040202D */ daddu $a0, $v0, $zero
/* 19BDC8 8026D4E8 0C099117 */ jal get_actor_part
/* 19BDCC 8026D4EC 0200282D */ daddu $a1, $s0, $zero
/* 19BDD0 8026D4F0 0240202D */ daddu $a0, $s2, $zero
/* 19BDD4 8026D4F4 8C46007C */ lw $a2, 0x7c($v0)
/* 19BDD8 8026D4F8 0C0B2026 */ jal set_variable
/* 19BDDC 8026D4FC 0220282D */ daddu $a1, $s1, $zero
/* 19BDE0 8026D500 8FBF001C */ lw $ra, 0x1c($sp)
/* 19BDE4 8026D504 8FB20018 */ lw $s2, 0x18($sp)
/* 19BDE8 8026D508 8FB10014 */ lw $s1, 0x14($sp)
/* 19BDEC 8026D50C 8FB00010 */ lw $s0, 0x10($sp)
/* 19BDF0 8026D510 24020002 */ addiu $v0, $zero, 2
/* 19BDF4 8026D514 03E00008 */ jr $ra
/* 19BDF8 8026D518 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,42 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel GetPartFlags
/* 19BAF8 8026D218 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 19BAFC 8026D21C AFB20018 */ sw $s2, 0x18($sp)
/* 19BB00 8026D220 0080902D */ daddu $s2, $a0, $zero
/* 19BB04 8026D224 AFBF001C */ sw $ra, 0x1c($sp)
/* 19BB08 8026D228 AFB10014 */ sw $s1, 0x14($sp)
/* 19BB0C 8026D22C AFB00010 */ sw $s0, 0x10($sp)
/* 19BB10 8026D230 8E51000C */ lw $s1, 0xc($s2)
/* 19BB14 8026D234 8E250000 */ lw $a1, ($s1)
/* 19BB18 8026D238 0C0B1EAF */ jal get_variable
/* 19BB1C 8026D23C 26310004 */ addiu $s1, $s1, 4
/* 19BB20 8026D240 0040802D */ daddu $s0, $v0, $zero
/* 19BB24 8026D244 2402FF81 */ addiu $v0, $zero, -0x7f
/* 19BB28 8026D248 16020002 */ bne $s0, $v0, .L8026D254
/* 19BB2C 8026D24C 00000000 */ nop
/* 19BB30 8026D250 8E500148 */ lw $s0, 0x148($s2)
.L8026D254:
/* 19BB34 8026D254 8E250000 */ lw $a1, ($s1)
/* 19BB38 8026D258 26310004 */ addiu $s1, $s1, 4
/* 19BB3C 8026D25C 0C0B1EAF */ jal get_variable
/* 19BB40 8026D260 0240202D */ daddu $a0, $s2, $zero
/* 19BB44 8026D264 0200202D */ daddu $a0, $s0, $zero
/* 19BB48 8026D268 8E310000 */ lw $s1, ($s1)
/* 19BB4C 8026D26C 0C09A75B */ jal get_actor
/* 19BB50 8026D270 0040802D */ daddu $s0, $v0, $zero
/* 19BB54 8026D274 0040202D */ daddu $a0, $v0, $zero
/* 19BB58 8026D278 0C099117 */ jal get_actor_part
/* 19BB5C 8026D27C 0200282D */ daddu $a1, $s0, $zero
/* 19BB60 8026D280 0240202D */ daddu $a0, $s2, $zero
/* 19BB64 8026D284 8C460000 */ lw $a2, ($v0)
/* 19BB68 8026D288 0C0B2026 */ jal set_variable
/* 19BB6C 8026D28C 0220282D */ daddu $a1, $s1, $zero
/* 19BB70 8026D290 8FBF001C */ lw $ra, 0x1c($sp)
/* 19BB74 8026D294 8FB20018 */ lw $s2, 0x18($sp)
/* 19BB78 8026D298 8FB10014 */ lw $s1, 0x14($sp)
/* 19BB7C 8026D29C 8FB00010 */ lw $s0, 0x10($sp)
/* 19BB80 8026D2A0 24020002 */ addiu $v0, $zero, 2
/* 19BB84 8026D2A4 03E00008 */ jr $ra
/* 19BB88 8026D2A8 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,42 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel GetPartTargetFlags
/* 19BB8C 8026D2AC 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 19BB90 8026D2B0 AFB20018 */ sw $s2, 0x18($sp)
/* 19BB94 8026D2B4 0080902D */ daddu $s2, $a0, $zero
/* 19BB98 8026D2B8 AFBF001C */ sw $ra, 0x1c($sp)
/* 19BB9C 8026D2BC AFB10014 */ sw $s1, 0x14($sp)
/* 19BBA0 8026D2C0 AFB00010 */ sw $s0, 0x10($sp)
/* 19BBA4 8026D2C4 8E51000C */ lw $s1, 0xc($s2)
/* 19BBA8 8026D2C8 8E250000 */ lw $a1, ($s1)
/* 19BBAC 8026D2CC 0C0B1EAF */ jal get_variable
/* 19BBB0 8026D2D0 26310004 */ addiu $s1, $s1, 4
/* 19BBB4 8026D2D4 0040802D */ daddu $s0, $v0, $zero
/* 19BBB8 8026D2D8 2402FF81 */ addiu $v0, $zero, -0x7f
/* 19BBBC 8026D2DC 16020002 */ bne $s0, $v0, .L8026D2E8
/* 19BBC0 8026D2E0 00000000 */ nop
/* 19BBC4 8026D2E4 8E500148 */ lw $s0, 0x148($s2)
.L8026D2E8:
/* 19BBC8 8026D2E8 8E250000 */ lw $a1, ($s1)
/* 19BBCC 8026D2EC 26310004 */ addiu $s1, $s1, 4
/* 19BBD0 8026D2F0 0C0B1EAF */ jal get_variable
/* 19BBD4 8026D2F4 0240202D */ daddu $a0, $s2, $zero
/* 19BBD8 8026D2F8 0200202D */ daddu $a0, $s0, $zero
/* 19BBDC 8026D2FC 8E310000 */ lw $s1, ($s1)
/* 19BBE0 8026D300 0C09A75B */ jal get_actor
/* 19BBE4 8026D304 0040802D */ daddu $s0, $v0, $zero
/* 19BBE8 8026D308 0040202D */ daddu $a0, $v0, $zero
/* 19BBEC 8026D30C 0C099117 */ jal get_actor_part
/* 19BBF0 8026D310 0200282D */ daddu $a1, $s0, $zero
/* 19BBF4 8026D314 0240202D */ daddu $a0, $s2, $zero
/* 19BBF8 8026D318 8C460004 */ lw $a2, 4($v0)
/* 19BBFC 8026D31C 0C0B2026 */ jal set_variable
/* 19BC00 8026D320 0220282D */ daddu $a1, $s1, $zero
/* 19BC04 8026D324 8FBF001C */ lw $ra, 0x1c($sp)
/* 19BC08 8026D328 8FB20018 */ lw $s2, 0x18($sp)
/* 19BC0C 8026D32C 8FB10014 */ lw $s1, 0x14($sp)
/* 19BC10 8026D330 8FB00010 */ lw $s0, 0x10($sp)
/* 19BC14 8026D334 24020002 */ addiu $v0, $zero, 2
/* 19BC18 8026D338 03E00008 */ jr $ra
/* 19BC1C 8026D33C 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,44 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetActorFlagBits
/* 19B76C 8026CE8C 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 19B770 8026CE90 AFB20018 */ sw $s2, 0x18($sp)
/* 19B774 8026CE94 0080902D */ daddu $s2, $a0, $zero
/* 19B778 8026CE98 AFBF001C */ sw $ra, 0x1c($sp)
/* 19B77C 8026CE9C AFB10014 */ sw $s1, 0x14($sp)
/* 19B780 8026CEA0 AFB00010 */ sw $s0, 0x10($sp)
/* 19B784 8026CEA4 8E50000C */ lw $s0, 0xc($s2)
/* 19B788 8026CEA8 8E050000 */ lw $a1, ($s0)
/* 19B78C 8026CEAC 0C0B1EAF */ jal get_variable
/* 19B790 8026CEB0 26100004 */ addiu $s0, $s0, 4
/* 19B794 8026CEB4 0040882D */ daddu $s1, $v0, $zero
/* 19B798 8026CEB8 2402FF81 */ addiu $v0, $zero, -0x7f
/* 19B79C 8026CEBC 16220002 */ bne $s1, $v0, .L8026CEC8
/* 19B7A0 8026CEC0 0240202D */ daddu $a0, $s2, $zero
/* 19B7A4 8026CEC4 8E510148 */ lw $s1, 0x148($s2)
.L8026CEC8:
/* 19B7A8 8026CEC8 8E050004 */ lw $a1, 4($s0)
/* 19B7AC 8026CECC 0C0B1EAF */ jal get_variable
/* 19B7B0 8026CED0 8E120000 */ lw $s2, ($s0)
/* 19B7B4 8026CED4 0220202D */ daddu $a0, $s1, $zero
/* 19B7B8 8026CED8 0C09A75B */ jal get_actor
/* 19B7BC 8026CEDC 0040802D */ daddu $s0, $v0, $zero
/* 19B7C0 8026CEE0 12000004 */ beqz $s0, .L8026CEF4
/* 19B7C4 8026CEE4 0040202D */ daddu $a0, $v0, $zero
/* 19B7C8 8026CEE8 8C820000 */ lw $v0, ($a0)
/* 19B7CC 8026CEEC 0809B3C0 */ j .L8026CF00
/* 19B7D0 8026CEF0 00521025 */ or $v0, $v0, $s2
.L8026CEF4:
/* 19B7D4 8026CEF4 8C820000 */ lw $v0, ($a0)
/* 19B7D8 8026CEF8 00121827 */ nor $v1, $zero, $s2
/* 19B7DC 8026CEFC 00431024 */ and $v0, $v0, $v1
.L8026CF00:
/* 19B7E0 8026CF00 AC820000 */ sw $v0, ($a0)
/* 19B7E4 8026CF04 8FBF001C */ lw $ra, 0x1c($sp)
/* 19B7E8 8026CF08 8FB20018 */ lw $s2, 0x18($sp)
/* 19B7EC 8026CF0C 8FB10014 */ lw $s1, 0x14($sp)
/* 19B7F0 8026CF10 8FB00010 */ lw $s0, 0x10($sp)
/* 19B7F4 8026CF14 24020002 */ addiu $v0, $zero, 2
/* 19B7F8 8026CF18 03E00008 */ jr $ra
/* 19B7FC 8026CF1C 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,28 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetActorFlags
/* 19B710 8026CE30 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 19B714 8026CE34 AFB10014 */ sw $s1, 0x14($sp)
/* 19B718 8026CE38 0080882D */ daddu $s1, $a0, $zero
/* 19B71C 8026CE3C AFBF0018 */ sw $ra, 0x18($sp)
/* 19B720 8026CE40 AFB00010 */ sw $s0, 0x10($sp)
/* 19B724 8026CE44 8E30000C */ lw $s0, 0xc($s1)
/* 19B728 8026CE48 8E050000 */ lw $a1, ($s0)
/* 19B72C 8026CE4C 0C0B1EAF */ jal get_variable
/* 19B730 8026CE50 26100004 */ addiu $s0, $s0, 4
/* 19B734 8026CE54 0040202D */ daddu $a0, $v0, $zero
/* 19B738 8026CE58 2402FF81 */ addiu $v0, $zero, -0x7f
/* 19B73C 8026CE5C 14820002 */ bne $a0, $v0, .L8026CE68
/* 19B740 8026CE60 00000000 */ nop
/* 19B744 8026CE64 8E240148 */ lw $a0, 0x148($s1)
.L8026CE68:
/* 19B748 8026CE68 0C09A75B */ jal get_actor
/* 19B74C 8026CE6C 8E100000 */ lw $s0, ($s0)
/* 19B750 8026CE70 AC500000 */ sw $s0, ($v0)
/* 19B754 8026CE74 8FBF0018 */ lw $ra, 0x18($sp)
/* 19B758 8026CE78 8FB10014 */ lw $s1, 0x14($sp)
/* 19B75C 8026CE7C 8FB00010 */ lw $s0, 0x10($sp)
/* 19B760 8026CE80 24020002 */ addiu $v0, $zero, 2
/* 19B764 8026CE84 03E00008 */ jr $ra
/* 19B768 8026CE88 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,55 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetPartEventBits
/* 19BCA8 8026D3C8 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 19BCAC 8026D3CC AFB10014 */ sw $s1, 0x14($sp)
/* 19BCB0 8026D3D0 0080882D */ daddu $s1, $a0, $zero
/* 19BCB4 8026D3D4 AFBF0020 */ sw $ra, 0x20($sp)
/* 19BCB8 8026D3D8 AFB3001C */ sw $s3, 0x1c($sp)
/* 19BCBC 8026D3DC AFB20018 */ sw $s2, 0x18($sp)
/* 19BCC0 8026D3E0 AFB00010 */ sw $s0, 0x10($sp)
/* 19BCC4 8026D3E4 8E30000C */ lw $s0, 0xc($s1)
/* 19BCC8 8026D3E8 8E050000 */ lw $a1, ($s0)
/* 19BCCC 8026D3EC 0C0B1EAF */ jal get_variable
/* 19BCD0 8026D3F0 26100004 */ addiu $s0, $s0, 4
/* 19BCD4 8026D3F4 0040902D */ daddu $s2, $v0, $zero
/* 19BCD8 8026D3F8 2402FF81 */ addiu $v0, $zero, -0x7f
/* 19BCDC 8026D3FC 16420002 */ bne $s2, $v0, .L8026D408
/* 19BCE0 8026D400 00000000 */ nop
/* 19BCE4 8026D404 8E320148 */ lw $s2, 0x148($s1)
.L8026D408:
/* 19BCE8 8026D408 8E050000 */ lw $a1, ($s0)
/* 19BCEC 8026D40C 26100004 */ addiu $s0, $s0, 4
/* 19BCF0 8026D410 0C0B1EAF */ jal get_variable
/* 19BCF4 8026D414 0220202D */ daddu $a0, $s1, $zero
/* 19BCF8 8026D418 0220202D */ daddu $a0, $s1, $zero
/* 19BCFC 8026D41C 8E050004 */ lw $a1, 4($s0)
/* 19BD00 8026D420 8E130000 */ lw $s3, ($s0)
/* 19BD04 8026D424 0C0B1EAF */ jal get_variable
/* 19BD08 8026D428 0040882D */ daddu $s1, $v0, $zero
/* 19BD0C 8026D42C 0240202D */ daddu $a0, $s2, $zero
/* 19BD10 8026D430 0C09A75B */ jal get_actor
/* 19BD14 8026D434 0040802D */ daddu $s0, $v0, $zero
/* 19BD18 8026D438 0040202D */ daddu $a0, $v0, $zero
/* 19BD1C 8026D43C 0C099117 */ jal get_actor_part
/* 19BD20 8026D440 0220282D */ daddu $a1, $s1, $zero
/* 19BD24 8026D444 12000004 */ beqz $s0, .L8026D458
/* 19BD28 8026D448 0040202D */ daddu $a0, $v0, $zero
/* 19BD2C 8026D44C 8C82007C */ lw $v0, 0x7c($a0)
/* 19BD30 8026D450 0809B519 */ j .L8026D464
/* 19BD34 8026D454 00531025 */ or $v0, $v0, $s3
.L8026D458:
/* 19BD38 8026D458 8C82007C */ lw $v0, 0x7c($a0)
/* 19BD3C 8026D45C 00131827 */ nor $v1, $zero, $s3
/* 19BD40 8026D460 00431024 */ and $v0, $v0, $v1
.L8026D464:
/* 19BD44 8026D464 AC82007C */ sw $v0, 0x7c($a0)
/* 19BD48 8026D468 8FBF0020 */ lw $ra, 0x20($sp)
/* 19BD4C 8026D46C 8FB3001C */ lw $s3, 0x1c($sp)
/* 19BD50 8026D470 8FB20018 */ lw $s2, 0x18($sp)
/* 19BD54 8026D474 8FB10014 */ lw $s1, 0x14($sp)
/* 19BD58 8026D478 8FB00010 */ lw $s0, 0x10($sp)
/* 19BD5C 8026D47C 24020002 */ addiu $v0, $zero, 2
/* 19BD60 8026D480 03E00008 */ jr $ra
/* 19BD64 8026D484 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -1,39 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetPartEventFlags
/* 19BC20 8026D340 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 19BC24 8026D344 AFB20018 */ sw $s2, 0x18($sp)
/* 19BC28 8026D348 0080902D */ daddu $s2, $a0, $zero
/* 19BC2C 8026D34C AFBF001C */ sw $ra, 0x1c($sp)
/* 19BC30 8026D350 AFB10014 */ sw $s1, 0x14($sp)
/* 19BC34 8026D354 AFB00010 */ sw $s0, 0x10($sp)
/* 19BC38 8026D358 8E51000C */ lw $s1, 0xc($s2)
/* 19BC3C 8026D35C 8E250000 */ lw $a1, ($s1)
/* 19BC40 8026D360 0C0B1EAF */ jal get_variable
/* 19BC44 8026D364 26310004 */ addiu $s1, $s1, 4
/* 19BC48 8026D368 0040802D */ daddu $s0, $v0, $zero
/* 19BC4C 8026D36C 2402FF81 */ addiu $v0, $zero, -0x7f
/* 19BC50 8026D370 16020002 */ bne $s0, $v0, .L8026D37C
/* 19BC54 8026D374 00000000 */ nop
/* 19BC58 8026D378 8E500148 */ lw $s0, 0x148($s2)
.L8026D37C:
/* 19BC5C 8026D37C 8E250000 */ lw $a1, ($s1)
/* 19BC60 8026D380 26310004 */ addiu $s1, $s1, 4
/* 19BC64 8026D384 0C0B1EAF */ jal get_variable
/* 19BC68 8026D388 0240202D */ daddu $a0, $s2, $zero
/* 19BC6C 8026D38C 0200202D */ daddu $a0, $s0, $zero
/* 19BC70 8026D390 8E310000 */ lw $s1, ($s1)
/* 19BC74 8026D394 0C09A75B */ jal get_actor
/* 19BC78 8026D398 0040802D */ daddu $s0, $v0, $zero
/* 19BC7C 8026D39C 0040202D */ daddu $a0, $v0, $zero
/* 19BC80 8026D3A0 0C099117 */ jal get_actor_part
/* 19BC84 8026D3A4 0200282D */ daddu $a1, $s0, $zero
/* 19BC88 8026D3A8 AC51007C */ sw $s1, 0x7c($v0)
/* 19BC8C 8026D3AC 8FBF001C */ lw $ra, 0x1c($sp)
/* 19BC90 8026D3B0 8FB20018 */ lw $s2, 0x18($sp)
/* 19BC94 8026D3B4 8FB10014 */ lw $s1, 0x14($sp)
/* 19BC98 8026D3B8 8FB00010 */ lw $s0, 0x10($sp)
/* 19BC9C 8026D3BC 24020002 */ addiu $v0, $zero, 2
/* 19BCA0 8026D3C0 03E00008 */ jr $ra
/* 19BCA4 8026D3C4 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,55 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetPartFlagBits
/* 19B8F0 8026D010 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 19B8F4 8026D014 AFB10014 */ sw $s1, 0x14($sp)
/* 19B8F8 8026D018 0080882D */ daddu $s1, $a0, $zero
/* 19B8FC 8026D01C AFBF0020 */ sw $ra, 0x20($sp)
/* 19B900 8026D020 AFB3001C */ sw $s3, 0x1c($sp)
/* 19B904 8026D024 AFB20018 */ sw $s2, 0x18($sp)
/* 19B908 8026D028 AFB00010 */ sw $s0, 0x10($sp)
/* 19B90C 8026D02C 8E30000C */ lw $s0, 0xc($s1)
/* 19B910 8026D030 8E050000 */ lw $a1, ($s0)
/* 19B914 8026D034 0C0B1EAF */ jal get_variable
/* 19B918 8026D038 26100004 */ addiu $s0, $s0, 4
/* 19B91C 8026D03C 0040902D */ daddu $s2, $v0, $zero
/* 19B920 8026D040 2402FF81 */ addiu $v0, $zero, -0x7f
/* 19B924 8026D044 16420002 */ bne $s2, $v0, .L8026D050
/* 19B928 8026D048 00000000 */ nop
/* 19B92C 8026D04C 8E320148 */ lw $s2, 0x148($s1)
.L8026D050:
/* 19B930 8026D050 8E050000 */ lw $a1, ($s0)
/* 19B934 8026D054 26100004 */ addiu $s0, $s0, 4
/* 19B938 8026D058 0C0B1EAF */ jal get_variable
/* 19B93C 8026D05C 0220202D */ daddu $a0, $s1, $zero
/* 19B940 8026D060 0220202D */ daddu $a0, $s1, $zero
/* 19B944 8026D064 8E050004 */ lw $a1, 4($s0)
/* 19B948 8026D068 8E130000 */ lw $s3, ($s0)
/* 19B94C 8026D06C 0C0B1EAF */ jal get_variable
/* 19B950 8026D070 0040882D */ daddu $s1, $v0, $zero
/* 19B954 8026D074 0240202D */ daddu $a0, $s2, $zero
/* 19B958 8026D078 0C09A75B */ jal get_actor
/* 19B95C 8026D07C 0040802D */ daddu $s0, $v0, $zero
/* 19B960 8026D080 0040202D */ daddu $a0, $v0, $zero
/* 19B964 8026D084 0C099117 */ jal get_actor_part
/* 19B968 8026D088 0220282D */ daddu $a1, $s1, $zero
/* 19B96C 8026D08C 12000004 */ beqz $s0, .L8026D0A0
/* 19B970 8026D090 0040202D */ daddu $a0, $v0, $zero
/* 19B974 8026D094 8C820000 */ lw $v0, ($a0)
/* 19B978 8026D098 0809B42B */ j .L8026D0AC
/* 19B97C 8026D09C 00531025 */ or $v0, $v0, $s3
.L8026D0A0:
/* 19B980 8026D0A0 8C820000 */ lw $v0, ($a0)
/* 19B984 8026D0A4 00131827 */ nor $v1, $zero, $s3
/* 19B988 8026D0A8 00431024 */ and $v0, $v0, $v1
.L8026D0AC:
/* 19B98C 8026D0AC AC820000 */ sw $v0, ($a0)
/* 19B990 8026D0B0 8FBF0020 */ lw $ra, 0x20($sp)
/* 19B994 8026D0B4 8FB3001C */ lw $s3, 0x1c($sp)
/* 19B998 8026D0B8 8FB20018 */ lw $s2, 0x18($sp)
/* 19B99C 8026D0BC 8FB10014 */ lw $s1, 0x14($sp)
/* 19B9A0 8026D0C0 8FB00010 */ lw $s0, 0x10($sp)
/* 19B9A4 8026D0C4 24020002 */ addiu $v0, $zero, 2
/* 19B9A8 8026D0C8 03E00008 */ jr $ra
/* 19B9AC 8026D0CC 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -1,39 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetPartFlags
/* 19B868 8026CF88 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 19B86C 8026CF8C AFB20018 */ sw $s2, 0x18($sp)
/* 19B870 8026CF90 0080902D */ daddu $s2, $a0, $zero
/* 19B874 8026CF94 AFBF001C */ sw $ra, 0x1c($sp)
/* 19B878 8026CF98 AFB10014 */ sw $s1, 0x14($sp)
/* 19B87C 8026CF9C AFB00010 */ sw $s0, 0x10($sp)
/* 19B880 8026CFA0 8E51000C */ lw $s1, 0xc($s2)
/* 19B884 8026CFA4 8E250000 */ lw $a1, ($s1)
/* 19B888 8026CFA8 0C0B1EAF */ jal get_variable
/* 19B88C 8026CFAC 26310004 */ addiu $s1, $s1, 4
/* 19B890 8026CFB0 0040802D */ daddu $s0, $v0, $zero
/* 19B894 8026CFB4 2402FF81 */ addiu $v0, $zero, -0x7f
/* 19B898 8026CFB8 16020002 */ bne $s0, $v0, .L8026CFC4
/* 19B89C 8026CFBC 00000000 */ nop
/* 19B8A0 8026CFC0 8E500148 */ lw $s0, 0x148($s2)
.L8026CFC4:
/* 19B8A4 8026CFC4 8E250000 */ lw $a1, ($s1)
/* 19B8A8 8026CFC8 26310004 */ addiu $s1, $s1, 4
/* 19B8AC 8026CFCC 0C0B1EAF */ jal get_variable
/* 19B8B0 8026CFD0 0240202D */ daddu $a0, $s2, $zero
/* 19B8B4 8026CFD4 0200202D */ daddu $a0, $s0, $zero
/* 19B8B8 8026CFD8 8E310000 */ lw $s1, ($s1)
/* 19B8BC 8026CFDC 0C09A75B */ jal get_actor
/* 19B8C0 8026CFE0 0040802D */ daddu $s0, $v0, $zero
/* 19B8C4 8026CFE4 0040202D */ daddu $a0, $v0, $zero
/* 19B8C8 8026CFE8 0C099117 */ jal get_actor_part
/* 19B8CC 8026CFEC 0200282D */ daddu $a1, $s0, $zero
/* 19B8D0 8026CFF0 AC510000 */ sw $s1, ($v0)
/* 19B8D4 8026CFF4 8FBF001C */ lw $ra, 0x1c($sp)
/* 19B8D8 8026CFF8 8FB20018 */ lw $s2, 0x18($sp)
/* 19B8DC 8026CFFC 8FB10014 */ lw $s1, 0x14($sp)
/* 19B8E0 8026D000 8FB00010 */ lw $s0, 0x10($sp)
/* 19B8E4 8026D004 24020002 */ addiu $v0, $zero, 2
/* 19B8E8 8026D008 03E00008 */ jr $ra
/* 19B8EC 8026D00C 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,55 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetPartTargetFlagBits
/* 19BA38 8026D158 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 19BA3C 8026D15C AFB10014 */ sw $s1, 0x14($sp)
/* 19BA40 8026D160 0080882D */ daddu $s1, $a0, $zero
/* 19BA44 8026D164 AFBF0020 */ sw $ra, 0x20($sp)
/* 19BA48 8026D168 AFB3001C */ sw $s3, 0x1c($sp)
/* 19BA4C 8026D16C AFB20018 */ sw $s2, 0x18($sp)
/* 19BA50 8026D170 AFB00010 */ sw $s0, 0x10($sp)
/* 19BA54 8026D174 8E30000C */ lw $s0, 0xc($s1)
/* 19BA58 8026D178 8E050000 */ lw $a1, ($s0)
/* 19BA5C 8026D17C 0C0B1EAF */ jal get_variable
/* 19BA60 8026D180 26100004 */ addiu $s0, $s0, 4
/* 19BA64 8026D184 0040902D */ daddu $s2, $v0, $zero
/* 19BA68 8026D188 2402FF81 */ addiu $v0, $zero, -0x7f
/* 19BA6C 8026D18C 16420002 */ bne $s2, $v0, .L8026D198
/* 19BA70 8026D190 00000000 */ nop
/* 19BA74 8026D194 8E320148 */ lw $s2, 0x148($s1)
.L8026D198:
/* 19BA78 8026D198 8E050000 */ lw $a1, ($s0)
/* 19BA7C 8026D19C 26100004 */ addiu $s0, $s0, 4
/* 19BA80 8026D1A0 0C0B1EAF */ jal get_variable
/* 19BA84 8026D1A4 0220202D */ daddu $a0, $s1, $zero
/* 19BA88 8026D1A8 0220202D */ daddu $a0, $s1, $zero
/* 19BA8C 8026D1AC 8E050004 */ lw $a1, 4($s0)
/* 19BA90 8026D1B0 8E130000 */ lw $s3, ($s0)
/* 19BA94 8026D1B4 0C0B1EAF */ jal get_variable
/* 19BA98 8026D1B8 0040882D */ daddu $s1, $v0, $zero
/* 19BA9C 8026D1BC 0240202D */ daddu $a0, $s2, $zero
/* 19BAA0 8026D1C0 0C09A75B */ jal get_actor
/* 19BAA4 8026D1C4 0040802D */ daddu $s0, $v0, $zero
/* 19BAA8 8026D1C8 0040202D */ daddu $a0, $v0, $zero
/* 19BAAC 8026D1CC 0C099117 */ jal get_actor_part
/* 19BAB0 8026D1D0 0220282D */ daddu $a1, $s1, $zero
/* 19BAB4 8026D1D4 12000004 */ beqz $s0, .L8026D1E8
/* 19BAB8 8026D1D8 0040202D */ daddu $a0, $v0, $zero
/* 19BABC 8026D1DC 8C820004 */ lw $v0, 4($a0)
/* 19BAC0 8026D1E0 0809B47D */ j .L8026D1F4
/* 19BAC4 8026D1E4 00531025 */ or $v0, $v0, $s3
.L8026D1E8:
/* 19BAC8 8026D1E8 8C820004 */ lw $v0, 4($a0)
/* 19BACC 8026D1EC 00131827 */ nor $v1, $zero, $s3
/* 19BAD0 8026D1F0 00431024 */ and $v0, $v0, $v1
.L8026D1F4:
/* 19BAD4 8026D1F4 AC820004 */ sw $v0, 4($a0)
/* 19BAD8 8026D1F8 8FBF0020 */ lw $ra, 0x20($sp)
/* 19BADC 8026D1FC 8FB3001C */ lw $s3, 0x1c($sp)
/* 19BAE0 8026D200 8FB20018 */ lw $s2, 0x18($sp)
/* 19BAE4 8026D204 8FB10014 */ lw $s1, 0x14($sp)
/* 19BAE8 8026D208 8FB00010 */ lw $s0, 0x10($sp)
/* 19BAEC 8026D20C 24020002 */ addiu $v0, $zero, 2
/* 19BAF0 8026D210 03E00008 */ jr $ra
/* 19BAF4 8026D214 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -1,39 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetPartTargetFlags
/* 19B9B0 8026D0D0 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 19B9B4 8026D0D4 AFB20018 */ sw $s2, 0x18($sp)
/* 19B9B8 8026D0D8 0080902D */ daddu $s2, $a0, $zero
/* 19B9BC 8026D0DC AFBF001C */ sw $ra, 0x1c($sp)
/* 19B9C0 8026D0E0 AFB10014 */ sw $s1, 0x14($sp)
/* 19B9C4 8026D0E4 AFB00010 */ sw $s0, 0x10($sp)
/* 19B9C8 8026D0E8 8E51000C */ lw $s1, 0xc($s2)
/* 19B9CC 8026D0EC 8E250000 */ lw $a1, ($s1)
/* 19B9D0 8026D0F0 0C0B1EAF */ jal get_variable
/* 19B9D4 8026D0F4 26310004 */ addiu $s1, $s1, 4
/* 19B9D8 8026D0F8 0040802D */ daddu $s0, $v0, $zero
/* 19B9DC 8026D0FC 2402FF81 */ addiu $v0, $zero, -0x7f
/* 19B9E0 8026D100 16020002 */ bne $s0, $v0, .L8026D10C
/* 19B9E4 8026D104 00000000 */ nop
/* 19B9E8 8026D108 8E500148 */ lw $s0, 0x148($s2)
.L8026D10C:
/* 19B9EC 8026D10C 8E250000 */ lw $a1, ($s1)
/* 19B9F0 8026D110 26310004 */ addiu $s1, $s1, 4
/* 19B9F4 8026D114 0C0B1EAF */ jal get_variable
/* 19B9F8 8026D118 0240202D */ daddu $a0, $s2, $zero
/* 19B9FC 8026D11C 0200202D */ daddu $a0, $s0, $zero
/* 19BA00 8026D120 8E310000 */ lw $s1, ($s1)
/* 19BA04 8026D124 0C09A75B */ jal get_actor
/* 19BA08 8026D128 0040802D */ daddu $s0, $v0, $zero
/* 19BA0C 8026D12C 0040202D */ daddu $a0, $v0, $zero
/* 19BA10 8026D130 0C099117 */ jal get_actor_part
/* 19BA14 8026D134 0200282D */ daddu $a1, $s0, $zero
/* 19BA18 8026D138 AC510004 */ sw $s1, 4($v0)
/* 19BA1C 8026D13C 8FBF001C */ lw $ra, 0x1c($sp)
/* 19BA20 8026D140 8FB20018 */ lw $s2, 0x18($sp)
/* 19BA24 8026D144 8FB10014 */ lw $s1, 0x14($sp)
/* 19BA28 8026D148 8FB00010 */ lw $s0, 0x10($sp)
/* 19BA2C 8026D14C 24020002 */ addiu $v0, $zero, 2
/* 19BA30 8026D150 03E00008 */ jr $ra
/* 19BA34 8026D154 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1509,29 +1509,256 @@ ApiStatus SetBattleFlagBits2(ScriptInstance* script, s32 isInitialCall) {
return ApiStatus_DONE2;
}
INCLUDE_ASM(s32, "code_197F40", SetActorFlags);
ApiStatus SetActorFlags(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
ActorID actorID = get_variable(script, *args++);
s32 a1;
INCLUDE_ASM(s32, "code_197F40", SetActorFlagBits);
if (actorID == ActorID_SELF) {
actorID = script->owner1.actorID;
}
INCLUDE_ASM(s32, "code_197F40", GetActorFlags);
a1 = *args++;
get_actor(actorID)->flags = a1;
INCLUDE_ASM(s32, "code_197F40", SetPartFlags);
return ApiStatus_DONE2;
}
INCLUDE_ASM(s32, "code_197F40", SetPartFlagBits);
ApiStatus SetActorFlagBits(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
ActorID actorID = get_variable(script, *args++);
s32 a1;
s32 var1;
Actor* actor;
INCLUDE_ASM(s32, "code_197F40", SetPartTargetFlags);
if (actorID == ActorID_SELF) {
actorID = script->owner1.actorID;
}
INCLUDE_ASM(s32, "code_197F40", SetPartTargetFlagBits);
a1 = *args++;
var1 = get_variable(script, *args++);
actor = get_actor(actorID);
INCLUDE_ASM(s32, "code_197F40", GetPartFlags);
if (var1 != 0) {
actor->flags |= a1;
} else {
actor->flags &= ~a1;
}
INCLUDE_ASM(s32, "code_197F40", GetPartTargetFlags);
return ApiStatus_DONE2;
}
INCLUDE_ASM(s32, "code_197F40", SetPartEventFlags);
ApiStatus GetActorFlags(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
ActorID actorID = get_variable(script, *args++);
s32 a1;
INCLUDE_ASM(s32, "code_197F40", SetPartEventBits);
if (actorID == ActorID_SELF) {
actorID = script->owner1.actorID;
}
INCLUDE_ASM(s32, "code_197F40", GetPartEventFlags);
a1 = *args++;
set_variable(script, a1, get_actor(actorID)->flags);
return ApiStatus_DONE2;
}
ApiStatus SetPartFlags(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
ActorID actorID = get_variable(script, *args++);
s32 a1;
s32 partIndex;
if (actorID == ActorID_SELF) {
actorID = script->owner1.actorID;
}
partIndex = get_variable(script, *args++);
a1 = *args++;
get_actor_part(get_actor(actorID), partIndex)->flags = a1;
return ApiStatus_DONE2;
}
ApiStatus SetPartFlagBits(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
ActorID actorID = get_variable(script, *args++);
ActorPart* actorPart;
s32 bits;
s32 partIndex;
s32 cond;
if (actorID == ActorID_SELF) {
actorID = script->owner1.actorID;
}
partIndex = get_variable(script, *args++);
bits = *args++;
cond = get_variable(script, *args++);
actorPart = get_actor_part(get_actor(actorID), partIndex);
if (cond != 0) {
actorPart->flags |= bits;
} else {
actorPart->flags &= ~bits;
}
return ApiStatus_DONE2;
}
ApiStatus SetPartTargetFlags(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
ActorID actorID = get_variable(script, *args++);
ActorPart* actorPart;
s32 flags;
s32 partIndex;
s32 cond;
if (actorID == ActorID_SELF) {
actorID = script->owner1.actorID;
}
partIndex = get_variable(script, *args++);
flags = *args++;
get_actor_part(get_actor(actorID), partIndex)->targetFlags = flags;
return ApiStatus_DONE2;
}
ApiStatus SetPartTargetFlagBits(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
ActorID actorID = get_variable(script, *args++);
ActorPart* actorPart;
s32 partIndex;
s32 bits;
s32 cond;
if (actorID == ActorID_SELF) {
actorID = script->owner1.actorID;
}
partIndex = get_variable(script, *args++);
bits = *args++;
cond = get_variable(script, *args++);
actorPart = get_actor_part(get_actor(actorID), partIndex);
if (cond != 0) {
actorPart->targetFlags |= bits;
} else {
actorPart->targetFlags &= ~bits;
}
return ApiStatus_DONE2;
}
ApiStatus GetPartFlags(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
ActorID actorID = get_variable(script, *args++);
s32 partIndex;
ActorPart* actorPart;
s32 a2;
if (actorID == ActorID_SELF) {
actorID = script->owner1.actorID;
}
partIndex = get_variable(script, *args++);
a2 = *args++;
set_variable(script, a2, get_actor_part(get_actor(actorID), partIndex)->flags);
return ApiStatus_DONE2;
}
ApiStatus GetPartTargetFlags(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
ActorID actorID = get_variable(script, *args++);
s32 partIndex;
ActorPart* actorPart;
s32 a2;
if (actorID == ActorID_SELF) {
actorID = script->owner1.actorID;
}
partIndex = get_variable(script, *args++);
a2 = *args++;
set_variable(script, a2, get_actor_part(get_actor(actorID), partIndex)->targetFlags);
return ApiStatus_DONE2;
}
ApiStatus SetPartEventFlags(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
ActorID actorID = get_variable(script, *args++);
ActorPart* actorPart;
s32 flags;
s32 partIndex;
s32 cond;
if (actorID == ActorID_SELF) {
actorID = script->owner1.actorID;
}
partIndex = get_variable(script, *args++);
flags = *args++;
get_actor_part(get_actor(actorID), partIndex)->eventFlags = flags;
return ApiStatus_DONE2;
}
ApiStatus SetPartEventBits(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
ActorID actorID = get_variable(script, *args++);
ActorPart* actorPart;
s32 partIndex;
s32 bits;
s32 cond;
if (actorID == ActorID_SELF) {
actorID = script->owner1.actorID;
}
partIndex = get_variable(script, *args++);
bits = *args++;
cond = get_variable(script, *args++);
actorPart = get_actor_part(get_actor(actorID), partIndex);
if (cond != 0) {
actorPart->eventFlags |= bits;
} else {
actorPart->eventFlags &= ~bits;
}
return ApiStatus_DONE2;
}
ApiStatus GetPartEventFlags(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
ActorID actorID = get_variable(script, *args++);
s32 partIndex;
ActorPart* actorPart;
s32 a2;
if (actorID == ActorID_SELF) {
actorID = script->owner1.actorID;
}
partIndex = get_variable(script, *args++);
a2 = *args++;
set_variable(script, a2, get_actor_part(get_actor(actorID), partIndex)->eventFlags);
return ApiStatus_DONE2;
}
INCLUDE_ASM(s32, "code_197F40", func_8026D51C);