mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 12:02:30 +01:00
match most functions in f8f60
This commit is contained in:
parent
5f588bca92
commit
946680f312
@ -1,190 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
|
||||
glabel AddVectorPolar
|
||||
/* 0F94C4 802D4B14 27BDFFC8 */ addiu $sp, $sp, -0x38
|
||||
/* 0F94C8 802D4B18 AFB1001C */ sw $s1, 0x1c($sp)
|
||||
/* 0F94CC 802D4B1C 0080882D */ daddu $s1, $a0, $zero
|
||||
/* 0F94D0 802D4B20 AFBF0028 */ sw $ra, 0x28($sp)
|
||||
/* 0F94D4 802D4B24 AFB30024 */ sw $s3, 0x24($sp)
|
||||
/* 0F94D8 802D4B28 AFB20020 */ sw $s2, 0x20($sp)
|
||||
/* 0F94DC 802D4B2C AFB00018 */ sw $s0, 0x18($sp)
|
||||
/* 0F94E0 802D4B30 F7B40030 */ sdc1 $f20, 0x30($sp)
|
||||
/* 0F94E4 802D4B34 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* 0F94E8 802D4B38 8E130000 */ lw $s3, ($s0)
|
||||
/* 0F94EC 802D4B3C 26100004 */ addiu $s0, $s0, 4
|
||||
/* 0F94F0 802D4B40 0C0B210B */ jal get_float_variable
|
||||
/* 0F94F4 802D4B44 0260282D */ daddu $a1, $s3, $zero
|
||||
/* 0F94F8 802D4B48 E7A00010 */ swc1 $f0, 0x10($sp)
|
||||
/* 0F94FC 802D4B4C 8E120000 */ lw $s2, ($s0)
|
||||
/* 0F9500 802D4B50 26100004 */ addiu $s0, $s0, 4
|
||||
/* 0F9504 802D4B54 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 0F9508 802D4B58 0C0B210B */ jal get_float_variable
|
||||
/* 0F950C 802D4B5C 0240282D */ daddu $a1, $s2, $zero
|
||||
/* 0F9510 802D4B60 E7A00014 */ swc1 $f0, 0x14($sp)
|
||||
/* 0F9514 802D4B64 8E050000 */ lw $a1, ($s0)
|
||||
/* 0F9518 802D4B68 26100004 */ addiu $s0, $s0, 4
|
||||
/* 0F951C 802D4B6C 0C0B210B */ jal get_float_variable
|
||||
/* 0F9520 802D4B70 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 0F9524 802D4B74 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 0F9528 802D4B78 8E050000 */ lw $a1, ($s0)
|
||||
/* 0F952C 802D4B7C 0C0B210B */ jal get_float_variable
|
||||
/* 0F9530 802D4B80 46000506 */ mov.s $f20, $f0
|
||||
/* 0F9534 802D4B84 27A40010 */ addiu $a0, $sp, 0x10
|
||||
/* 0F9538 802D4B88 4406A000 */ mfc1 $a2, $f20
|
||||
/* 0F953C 802D4B8C 44070000 */ mfc1 $a3, $f0
|
||||
/* 0F9540 802D4B90 0C00A7E7 */ jal add_vec2D_polar
|
||||
/* 0F9544 802D4B94 27A50014 */ addiu $a1, $sp, 0x14
|
||||
/* 0F9548 802D4B98 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 0F954C 802D4B9C 8FA60010 */ lw $a2, 0x10($sp)
|
||||
/* 0F9550 802D4BA0 0C0B2190 */ jal set_float_variable
|
||||
/* 0F9554 802D4BA4 0260282D */ daddu $a1, $s3, $zero
|
||||
/* 0F9558 802D4BA8 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 0F955C 802D4BAC 8FA60014 */ lw $a2, 0x14($sp)
|
||||
/* 0F9560 802D4BB0 0C0B2190 */ jal set_float_variable
|
||||
/* 0F9564 802D4BB4 0240282D */ daddu $a1, $s2, $zero
|
||||
/* 0F9568 802D4BB8 8FBF0028 */ lw $ra, 0x28($sp)
|
||||
/* 0F956C 802D4BBC 8FB30024 */ lw $s3, 0x24($sp)
|
||||
/* 0F9570 802D4BC0 8FB20020 */ lw $s2, 0x20($sp)
|
||||
/* 0F9574 802D4BC4 8FB1001C */ lw $s1, 0x1c($sp)
|
||||
/* 0F9578 802D4BC8 8FB00018 */ lw $s0, 0x18($sp)
|
||||
/* 0F957C 802D4BCC D7B40030 */ ldc1 $f20, 0x30($sp)
|
||||
/* 0F9580 802D4BD0 24020002 */ addiu $v0, $zero, 2
|
||||
/* 0F9584 802D4BD4 03E00008 */ jr $ra
|
||||
/* 0F9588 802D4BD8 27BD0038 */ addiu $sp, $sp, 0x38
|
||||
|
||||
/* 0F958C 802D4BDC 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 0F9590 802D4BE0 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* 0F9594 802D4BE4 10A00003 */ beqz $a1, .L802D4BF4
|
||||
/* 0F9598 802D4BE8 0080182D */ daddu $v1, $a0, $zero
|
||||
/* 0F959C 802D4BEC AC600070 */ sw $zero, 0x70($v1)
|
||||
/* 0F95A0 802D4BF0 AC600074 */ sw $zero, 0x74($v1)
|
||||
.L802D4BF4:
|
||||
/* 0F95A4 802D4BF4 8C620070 */ lw $v0, 0x70($v1)
|
||||
/* 0F95A8 802D4BF8 14400011 */ bnez $v0, .L802D4C40
|
||||
/* 0F95AC 802D4BFC 0000102D */ daddu $v0, $zero, $zero
|
||||
/* 0F95B0 802D4C00 8C620074 */ lw $v0, 0x74($v1)
|
||||
/* 0F95B4 802D4C04 240400FF */ addiu $a0, $zero, 0xff
|
||||
/* 0F95B8 802D4C08 14440003 */ bne $v0, $a0, .L802D4C18
|
||||
/* 0F95BC 802D4C0C 2442000A */ addiu $v0, $v0, 0xa
|
||||
/* 0F95C0 802D4C10 080B5310 */ j .L802D4C40
|
||||
/* 0F95C4 802D4C14 24020002 */ addiu $v0, $zero, 2
|
||||
|
||||
.L802D4C18:
|
||||
/* 0F95C8 802D4C18 AC620074 */ sw $v0, 0x74($v1)
|
||||
/* 0F95CC 802D4C1C 28420100 */ slti $v0, $v0, 0x100
|
||||
/* 0F95D0 802D4C20 50400001 */ beql $v0, $zero, .L802D4C28
|
||||
/* 0F95D4 802D4C24 AC640074 */ sw $a0, 0x74($v1)
|
||||
.L802D4C28:
|
||||
/* 0F95D8 802D4C28 C4600074 */ lwc1 $f0, 0x74($v1)
|
||||
/* 0F95DC 802D4C2C 46800020 */ cvt.s.w $f0, $f0
|
||||
/* 0F95E0 802D4C30 44050000 */ mfc1 $a1, $f0
|
||||
/* 0F95E4 802D4C34 0C04DF69 */ jal func_80137DA4
|
||||
/* 0F95E8 802D4C38 2404000A */ addiu $a0, $zero, 0xa
|
||||
/* 0F95EC 802D4C3C 0000102D */ daddu $v0, $zero, $zero
|
||||
.L802D4C40:
|
||||
/* 0F95F0 802D4C40 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* 0F95F4 802D4C44 03E00008 */ jr $ra
|
||||
/* 0F95F8 802D4C48 27BD0018 */ addiu $sp, $sp, 0x18
|
||||
|
||||
/* 0F95FC 802D4C4C 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 0F9600 802D4C50 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* 0F9604 802D4C54 10A00004 */ beqz $a1, .L802D4C68
|
||||
/* 0F9608 802D4C58 0080182D */ daddu $v1, $a0, $zero
|
||||
/* 0F960C 802D4C5C 240200FF */ addiu $v0, $zero, 0xff
|
||||
/* 0F9610 802D4C60 AC600070 */ sw $zero, 0x70($v1)
|
||||
/* 0F9614 802D4C64 AC620074 */ sw $v0, 0x74($v1)
|
||||
.L802D4C68:
|
||||
/* 0F9618 802D4C68 8C620070 */ lw $v0, 0x70($v1)
|
||||
/* 0F961C 802D4C6C 14400012 */ bnez $v0, .L802D4CB8
|
||||
/* 0F9620 802D4C70 0000102D */ daddu $v0, $zero, $zero
|
||||
/* 0F9624 802D4C74 8C620074 */ lw $v0, 0x74($v1)
|
||||
/* 0F9628 802D4C78 14400006 */ bnez $v0, .L802D4C94
|
||||
/* 0F962C 802D4C7C 2442FFF6 */ addiu $v0, $v0, -0xa
|
||||
/* 0F9630 802D4C80 3C05BF80 */ lui $a1, 0xbf80
|
||||
/* 0F9634 802D4C84 0C04DF69 */ jal func_80137DA4
|
||||
/* 0F9638 802D4C88 240400FF */ addiu $a0, $zero, 0xff
|
||||
/* 0F963C 802D4C8C 080B532E */ j .L802D4CB8
|
||||
/* 0F9640 802D4C90 24020002 */ addiu $v0, $zero, 2
|
||||
|
||||
.L802D4C94:
|
||||
/* 0F9644 802D4C94 04410002 */ bgez $v0, .L802D4CA0
|
||||
/* 0F9648 802D4C98 AC620074 */ sw $v0, 0x74($v1)
|
||||
/* 0F964C 802D4C9C AC600074 */ sw $zero, 0x74($v1)
|
||||
.L802D4CA0:
|
||||
/* 0F9650 802D4CA0 C4600074 */ lwc1 $f0, 0x74($v1)
|
||||
/* 0F9654 802D4CA4 46800020 */ cvt.s.w $f0, $f0
|
||||
/* 0F9658 802D4CA8 44050000 */ mfc1 $a1, $f0
|
||||
/* 0F965C 802D4CAC 0C04DF69 */ jal func_80137DA4
|
||||
/* 0F9660 802D4CB0 2404000A */ addiu $a0, $zero, 0xa
|
||||
/* 0F9664 802D4CB4 0000102D */ daddu $v0, $zero, $zero
|
||||
.L802D4CB8:
|
||||
/* 0F9668 802D4CB8 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* 0F966C 802D4CBC 03E00008 */ jr $ra
|
||||
/* 0F9670 802D4CC0 27BD0018 */ addiu $sp, $sp, 0x18
|
||||
|
||||
/* 0F9674 802D4CC4 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 0F9678 802D4CC8 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* 0F967C 802D4CCC 8C82000C */ lw $v0, 0xc($a0)
|
||||
/* 0F9680 802D4CD0 0C0B1EAF */ jal get_variable
|
||||
/* 0F9684 802D4CD4 8C450000 */ lw $a1, ($v0)
|
||||
/* 0F9688 802D4CD8 04410004 */ bgez $v0, .L802D4CEC
|
||||
/* 0F968C 802D4CDC 2404000A */ addiu $a0, $zero, 0xa
|
||||
/* 0F9690 802D4CE0 3C05BF80 */ lui $a1, 0xbf80
|
||||
/* 0F9694 802D4CE4 080B533F */ j .L802D4CFC
|
||||
/* 0F9698 802D4CE8 240400FF */ addiu $a0, $zero, 0xff
|
||||
|
||||
.L802D4CEC:
|
||||
/* 0F969C 802D4CEC 44820000 */ mtc1 $v0, $f0
|
||||
/* 0F96A0 802D4CF0 00000000 */ nop
|
||||
/* 0F96A4 802D4CF4 46800020 */ cvt.s.w $f0, $f0
|
||||
/* 0F96A8 802D4CF8 44050000 */ mfc1 $a1, $f0
|
||||
.L802D4CFC:
|
||||
/* 0F96AC 802D4CFC 0C04DF69 */ jal func_80137DA4
|
||||
/* 0F96B0 802D4D00 00000000 */ nop
|
||||
/* 0F96B4 802D4D04 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* 0F96B8 802D4D08 24020002 */ addiu $v0, $zero, 2
|
||||
/* 0F96BC 802D4D0C 03E00008 */ jr $ra
|
||||
/* 0F96C0 802D4D10 27BD0018 */ addiu $sp, $sp, 0x18
|
||||
|
||||
/* 0F96C4 802D4D14 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 0F96C8 802D4D18 AFBF0014 */ sw $ra, 0x14($sp)
|
||||
/* 0F96CC 802D4D1C AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 0F96D0 802D4D20 8C82000C */ lw $v0, 0xc($a0)
|
||||
/* 0F96D4 802D4D24 0C0B210B */ jal get_float_variable
|
||||
/* 0F96D8 802D4D28 8C450000 */ lw $a1, ($v0)
|
||||
/* 0F96DC 802D4D2C 0000202D */ daddu $a0, $zero, $zero
|
||||
/* 0F96E0 802D4D30 0080282D */ daddu $a1, $a0, $zero
|
||||
/* 0F96E4 802D4D34 2406000C */ addiu $a2, $zero, 0xc
|
||||
/* 0F96E8 802D4D38 4600008D */ trunc.w.s $f2, $f0
|
||||
/* 0F96EC 802D4D3C 44101000 */ mfc1 $s0, $f2
|
||||
/* 0F96F0 802D4D40 0C04DF93 */ jal func_80137E4C
|
||||
/* 0F96F4 802D4D44 24070014 */ addiu $a3, $zero, 0x14
|
||||
/* 0F96F8 802D4D48 0000202D */ daddu $a0, $zero, $zero
|
||||
/* 0F96FC 802D4D4C 24050001 */ addiu $a1, $zero, 1
|
||||
/* 0F9700 802D4D50 24060134 */ addiu $a2, $zero, 0x134
|
||||
/* 0F9704 802D4D54 0C04DF93 */ jal func_80137E4C
|
||||
/* 0F9708 802D4D58 240700DC */ addiu $a3, $zero, 0xdc
|
||||
/* 0F970C 802D4D5C 44901000 */ mtc1 $s0, $f2
|
||||
/* 0F9710 802D4D60 00000000 */ nop
|
||||
/* 0F9714 802D4D64 468010A0 */ cvt.s.w $f2, $f2
|
||||
/* 0F9718 802D4D68 44051000 */ mfc1 $a1, $f2
|
||||
/* 0F971C 802D4D6C 0C04DF62 */ jal func_80137D88
|
||||
/* 0F9720 802D4D70 2404000C */ addiu $a0, $zero, 0xc
|
||||
/* 0F9724 802D4D74 8FBF0014 */ lw $ra, 0x14($sp)
|
||||
/* 0F9728 802D4D78 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 0F972C 802D4D7C 24020002 */ addiu $v0, $zero, 2
|
||||
/* 0F9730 802D4D80 03E00008 */ jr $ra
|
||||
/* 0F9734 802D4D84 27BD0018 */ addiu $sp, $sp, 0x18
|
||||
|
||||
/* 0F9738 802D4D88 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 0F973C 802D4D8C 2404000C */ addiu $a0, $zero, 0xc
|
||||
/* 0F9740 802D4D90 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* 0F9744 802D4D94 0C04DF62 */ jal func_80137D88
|
||||
/* 0F9748 802D4D98 0000282D */ daddu $a1, $zero, $zero
|
||||
/* 0F974C 802D4D9C 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* 0F9750 802D4DA0 24020002 */ addiu $v0, $zero, 2
|
||||
/* 0F9754 802D4DA4 03E00008 */ jr $ra
|
||||
/* 0F9758 802D4DA8 27BD0018 */ addiu $sp, $sp, 0x18
|
||||
|
@ -1,31 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
|
||||
glabel ClampAngleFloat
|
||||
/* 0FA464 802D5AB4 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 0FA468 802D5AB8 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 0FA46C 802D5ABC 0080802D */ daddu $s0, $a0, $zero
|
||||
/* 0FA470 802D5AC0 AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* 0FA474 802D5AC4 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 0FA478 802D5AC8 8E11000C */ lw $s1, 0xc($s0)
|
||||
/* 0FA47C 802D5ACC 0C0B210B */ jal get_float_variable
|
||||
/* 0FA480 802D5AD0 8E250000 */ lw $a1, ($s1)
|
||||
/* 0FA484 802D5AD4 0C00A6C9 */ jal clamp_angle
|
||||
/* 0FA488 802D5AD8 46000306 */ mov.s $f12, $f0
|
||||
/* 0FA48C 802D5ADC 8E250000 */ lw $a1, ($s1)
|
||||
/* 0FA490 802D5AE0 44060000 */ mfc1 $a2, $f0
|
||||
/* 0FA494 802D5AE4 0C0B2190 */ jal set_float_variable
|
||||
/* 0FA498 802D5AE8 0200202D */ daddu $a0, $s0, $zero
|
||||
/* 0FA49C 802D5AEC 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* 0FA4A0 802D5AF0 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 0FA4A4 802D5AF4 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 0FA4A8 802D5AF8 24020002 */ addiu $v0, $zero, 2
|
||||
/* 0FA4AC 802D5AFC 03E00008 */ jr $ra
|
||||
/* 0FA4B0 802D5B00 27BD0020 */ addiu $sp, $sp, 0x20
|
||||
|
||||
/* 0FA4B4 802D5B04 00000000 */ nop
|
||||
/* 0FA4B8 802D5B08 00000000 */ nop
|
||||
/* 0FA4BC 802D5B0C 00000000 */ nop
|
||||
|
||||
|
@ -1,29 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
|
||||
glabel ClampAngleInt
|
||||
/* 0FA408 802D5A58 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 0FA40C 802D5A5C AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 0FA410 802D5A60 0080802D */ daddu $s0, $a0, $zero
|
||||
/* 0FA414 802D5A64 AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* 0FA418 802D5A68 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 0FA41C 802D5A6C 8E11000C */ lw $s1, 0xc($s0)
|
||||
/* 0FA420 802D5A70 0C0B1EAF */ jal get_variable
|
||||
/* 0FA424 802D5A74 8E250000 */ lw $a1, ($s1)
|
||||
/* 0FA428 802D5A78 44826000 */ mtc1 $v0, $f12
|
||||
/* 0FA42C 802D5A7C 00000000 */ nop
|
||||
/* 0FA430 802D5A80 0C00A6C9 */ jal clamp_angle
|
||||
/* 0FA434 802D5A84 46806320 */ cvt.s.w $f12, $f12
|
||||
/* 0FA438 802D5A88 8E250000 */ lw $a1, ($s1)
|
||||
/* 0FA43C 802D5A8C 4600008D */ trunc.w.s $f2, $f0
|
||||
/* 0FA440 802D5A90 44061000 */ mfc1 $a2, $f2
|
||||
/* 0FA444 802D5A94 0C0B2026 */ jal set_variable
|
||||
/* 0FA448 802D5A98 0200202D */ daddu $a0, $s0, $zero
|
||||
/* 0FA44C 802D5A9C 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* 0FA450 802D5AA0 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 0FA454 802D5AA4 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 0FA458 802D5AA8 24020002 */ addiu $v0, $zero, 2
|
||||
/* 0FA45C 802D5AAC 03E00008 */ jr $ra
|
||||
/* 0FA460 802D5AB0 27BD0020 */ addiu $sp, $sp, 0x20
|
||||
|
@ -1,29 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
|
||||
glabel GetValueByRef
|
||||
/* 0FA2EC 802D593C 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 0FA2F0 802D5940 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 0FA2F4 802D5944 0080882D */ daddu $s1, $a0, $zero
|
||||
/* 0FA2F8 802D5948 AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* 0FA2FC 802D594C AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 0FA300 802D5950 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* 0FA304 802D5954 8E050000 */ lw $a1, ($s0)
|
||||
/* 0FA308 802D5958 0C0B1EAF */ jal get_variable
|
||||
/* 0FA30C 802D595C 26100004 */ addiu $s0, $s0, 4
|
||||
/* 0FA310 802D5960 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 0FA314 802D5964 8E100000 */ lw $s0, ($s0)
|
||||
/* 0FA318 802D5968 0C0B1EAF */ jal get_variable
|
||||
/* 0FA31C 802D596C 0040282D */ daddu $a1, $v0, $zero
|
||||
/* 0FA320 802D5970 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 0FA324 802D5974 0040302D */ daddu $a2, $v0, $zero
|
||||
/* 0FA328 802D5978 0C0B2026 */ jal set_variable
|
||||
/* 0FA32C 802D597C 0200282D */ daddu $a1, $s0, $zero
|
||||
/* 0FA330 802D5980 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* 0FA334 802D5984 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 0FA338 802D5988 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 0FA33C 802D598C 24020002 */ addiu $v0, $zero, 2
|
||||
/* 0FA340 802D5990 03E00008 */ jr $ra
|
||||
/* 0FA344 802D5994 27BD0020 */ addiu $sp, $sp, 0x20
|
||||
|
@ -1,18 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
|
||||
glabel SetGameMode
|
||||
/* 0FA3D8 802D5A28 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 0FA3DC 802D5A2C AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* 0FA3E0 802D5A30 8C82000C */ lw $v0, 0xc($a0)
|
||||
/* 0FA3E4 802D5A34 0C0B1EAF */ jal get_variable
|
||||
/* 0FA3E8 802D5A38 8C450000 */ lw $a1, ($v0)
|
||||
/* 0FA3EC 802D5A3C 00021400 */ sll $v0, $v0, 0x10
|
||||
/* 0FA3F0 802D5A40 0C00CD3C */ jal set_game_mode
|
||||
/* 0FA3F4 802D5A44 00022403 */ sra $a0, $v0, 0x10
|
||||
/* 0FA3F8 802D5A48 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* 0FA3FC 802D5A4C 24020002 */ addiu $v0, $zero, 2
|
||||
/* 0FA400 802D5A50 03E00008 */ jr $ra
|
||||
/* 0FA404 802D5A54 27BD0018 */ addiu $sp, $sp, 0x18
|
||||
|
@ -1,29 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
|
||||
glabel SetValueByRef
|
||||
/* 0FA290 802D58E0 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 0FA294 802D58E4 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 0FA298 802D58E8 0080882D */ daddu $s1, $a0, $zero
|
||||
/* 0FA29C 802D58EC AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* 0FA2A0 802D58F0 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 0FA2A4 802D58F4 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* 0FA2A8 802D58F8 8E050000 */ lw $a1, ($s0)
|
||||
/* 0FA2AC 802D58FC 0C0B1EAF */ jal get_variable
|
||||
/* 0FA2B0 802D5900 26100004 */ addiu $s0, $s0, 4
|
||||
/* 0FA2B4 802D5904 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 0FA2B8 802D5908 8E050000 */ lw $a1, ($s0)
|
||||
/* 0FA2BC 802D590C 0C0B1EAF */ jal get_variable
|
||||
/* 0FA2C0 802D5910 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 0FA2C4 802D5914 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 0FA2C8 802D5918 0200282D */ daddu $a1, $s0, $zero
|
||||
/* 0FA2CC 802D591C 0C0B2026 */ jal set_variable
|
||||
/* 0FA2D0 802D5920 0040302D */ daddu $a2, $v0, $zero
|
||||
/* 0FA2D4 802D5924 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* 0FA2D8 802D5928 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 0FA2DC 802D592C 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 0FA2E0 802D5930 24020002 */ addiu $v0, $zero, 2
|
||||
/* 0FA2E4 802D5934 03E00008 */ jr $ra
|
||||
/* 0FA2E8 802D5938 27BD0020 */ addiu $sp, $sp, 0x20
|
||||
|
38
asm/nonmatchings/code_f8f60_len_1560/func_802D4BDC.s
Normal file
38
asm/nonmatchings/code_f8f60_len_1560/func_802D4BDC.s
Normal file
@ -0,0 +1,38 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
|
||||
glabel func_802D4BDC
|
||||
/* 0F958C 802D4BDC 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 0F9590 802D4BE0 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* 0F9594 802D4BE4 10A00003 */ beqz $a1, .L802D4BF4
|
||||
/* 0F9598 802D4BE8 0080182D */ daddu $v1, $a0, $zero
|
||||
/* 0F959C 802D4BEC AC600070 */ sw $zero, 0x70($v1)
|
||||
/* 0F95A0 802D4BF0 AC600074 */ sw $zero, 0x74($v1)
|
||||
.L802D4BF4:
|
||||
/* 0F95A4 802D4BF4 8C620070 */ lw $v0, 0x70($v1)
|
||||
/* 0F95A8 802D4BF8 14400011 */ bnez $v0, .L802D4C40
|
||||
/* 0F95AC 802D4BFC 0000102D */ daddu $v0, $zero, $zero
|
||||
/* 0F95B0 802D4C00 8C620074 */ lw $v0, 0x74($v1)
|
||||
/* 0F95B4 802D4C04 240400FF */ addiu $a0, $zero, 0xff
|
||||
/* 0F95B8 802D4C08 14440003 */ bne $v0, $a0, .L802D4C18
|
||||
/* 0F95BC 802D4C0C 2442000A */ addiu $v0, $v0, 0xa
|
||||
/* 0F95C0 802D4C10 080B5310 */ j .L802D4C40
|
||||
/* 0F95C4 802D4C14 24020002 */ addiu $v0, $zero, 2
|
||||
|
||||
.L802D4C18:
|
||||
/* 0F95C8 802D4C18 AC620074 */ sw $v0, 0x74($v1)
|
||||
/* 0F95CC 802D4C1C 28420100 */ slti $v0, $v0, 0x100
|
||||
/* 0F95D0 802D4C20 50400001 */ beql $v0, $zero, .L802D4C28
|
||||
/* 0F95D4 802D4C24 AC640074 */ sw $a0, 0x74($v1)
|
||||
.L802D4C28:
|
||||
/* 0F95D8 802D4C28 C4600074 */ lwc1 $f0, 0x74($v1)
|
||||
/* 0F95DC 802D4C2C 46800020 */ cvt.s.w $f0, $f0
|
||||
/* 0F95E0 802D4C30 44050000 */ mfc1 $a1, $f0
|
||||
/* 0F95E4 802D4C34 0C04DF69 */ jal func_80137DA4
|
||||
/* 0F95E8 802D4C38 2404000A */ addiu $a0, $zero, 0xa
|
||||
/* 0F95EC 802D4C3C 0000102D */ daddu $v0, $zero, $zero
|
||||
.L802D4C40:
|
||||
/* 0F95F0 802D4C40 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* 0F95F4 802D4C44 03E00008 */ jr $ra
|
||||
/* 0F95F8 802D4C48 27BD0018 */ addiu $sp, $sp, 0x18
|
40
asm/nonmatchings/code_f8f60_len_1560/func_802D4C4C.s
Normal file
40
asm/nonmatchings/code_f8f60_len_1560/func_802D4C4C.s
Normal file
@ -0,0 +1,40 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
|
||||
glabel func_802D4C4C
|
||||
/* 0F95FC 802D4C4C 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 0F9600 802D4C50 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* 0F9604 802D4C54 10A00004 */ beqz $a1, .L802D4C68
|
||||
/* 0F9608 802D4C58 0080182D */ daddu $v1, $a0, $zero
|
||||
/* 0F960C 802D4C5C 240200FF */ addiu $v0, $zero, 0xff
|
||||
/* 0F9610 802D4C60 AC600070 */ sw $zero, 0x70($v1)
|
||||
/* 0F9614 802D4C64 AC620074 */ sw $v0, 0x74($v1)
|
||||
.L802D4C68:
|
||||
/* 0F9618 802D4C68 8C620070 */ lw $v0, 0x70($v1)
|
||||
/* 0F961C 802D4C6C 14400012 */ bnez $v0, .L802D4CB8
|
||||
/* 0F9620 802D4C70 0000102D */ daddu $v0, $zero, $zero
|
||||
/* 0F9624 802D4C74 8C620074 */ lw $v0, 0x74($v1)
|
||||
/* 0F9628 802D4C78 14400006 */ bnez $v0, .L802D4C94
|
||||
/* 0F962C 802D4C7C 2442FFF6 */ addiu $v0, $v0, -0xa
|
||||
/* 0F9630 802D4C80 3C05BF80 */ lui $a1, 0xbf80
|
||||
/* 0F9634 802D4C84 0C04DF69 */ jal func_80137DA4
|
||||
/* 0F9638 802D4C88 240400FF */ addiu $a0, $zero, 0xff
|
||||
/* 0F963C 802D4C8C 080B532E */ j .L802D4CB8
|
||||
/* 0F9640 802D4C90 24020002 */ addiu $v0, $zero, 2
|
||||
|
||||
.L802D4C94:
|
||||
/* 0F9644 802D4C94 04410002 */ bgez $v0, .L802D4CA0
|
||||
/* 0F9648 802D4C98 AC620074 */ sw $v0, 0x74($v1)
|
||||
/* 0F964C 802D4C9C AC600074 */ sw $zero, 0x74($v1)
|
||||
.L802D4CA0:
|
||||
/* 0F9650 802D4CA0 C4600074 */ lwc1 $f0, 0x74($v1)
|
||||
/* 0F9654 802D4CA4 46800020 */ cvt.s.w $f0, $f0
|
||||
/* 0F9658 802D4CA8 44050000 */ mfc1 $a1, $f0
|
||||
/* 0F965C 802D4CAC 0C04DF69 */ jal func_80137DA4
|
||||
/* 0F9660 802D4CB0 2404000A */ addiu $a0, $zero, 0xa
|
||||
/* 0F9664 802D4CB4 0000102D */ daddu $v0, $zero, $zero
|
||||
.L802D4CB8:
|
||||
/* 0F9668 802D4CB8 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* 0F966C 802D4CBC 03E00008 */ jr $ra
|
||||
/* 0F9670 802D4CC0 27BD0018 */ addiu $sp, $sp, 0x18
|
28
asm/nonmatchings/code_f8f60_len_1560/func_802D4CC4.s
Normal file
28
asm/nonmatchings/code_f8f60_len_1560/func_802D4CC4.s
Normal file
@ -0,0 +1,28 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
|
||||
glabel func_802D4CC4
|
||||
/* 0F9674 802D4CC4 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 0F9678 802D4CC8 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* 0F967C 802D4CCC 8C82000C */ lw $v0, 0xc($a0)
|
||||
/* 0F9680 802D4CD0 0C0B1EAF */ jal get_variable
|
||||
/* 0F9684 802D4CD4 8C450000 */ lw $a1, ($v0)
|
||||
/* 0F9688 802D4CD8 04410004 */ bgez $v0, .L802D4CEC
|
||||
/* 0F968C 802D4CDC 2404000A */ addiu $a0, $zero, 0xa
|
||||
/* 0F9690 802D4CE0 3C05BF80 */ lui $a1, 0xbf80
|
||||
/* 0F9694 802D4CE4 080B533F */ j .L802D4CFC
|
||||
/* 0F9698 802D4CE8 240400FF */ addiu $a0, $zero, 0xff
|
||||
|
||||
.L802D4CEC:
|
||||
/* 0F969C 802D4CEC 44820000 */ mtc1 $v0, $f0
|
||||
/* 0F96A0 802D4CF0 00000000 */ nop
|
||||
/* 0F96A4 802D4CF4 46800020 */ cvt.s.w $f0, $f0
|
||||
/* 0F96A8 802D4CF8 44050000 */ mfc1 $a1, $f0
|
||||
.L802D4CFC:
|
||||
/* 0F96AC 802D4CFC 0C04DF69 */ jal func_80137DA4
|
||||
/* 0F96B0 802D4D00 00000000 */ nop
|
||||
/* 0F96B4 802D4D04 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* 0F96B8 802D4D08 24020002 */ addiu $v0, $zero, 2
|
||||
/* 0F96BC 802D4D0C 03E00008 */ jr $ra
|
||||
/* 0F96C0 802D4D10 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -1,17 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
|
||||
glabel func_802D5830
|
||||
/* 0FA1E0 802D5830 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 0FA1E4 802D5834 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* 0FA1E8 802D5838 8C82000C */ lw $v0, 0xc($a0)
|
||||
/* 0FA1EC 802D583C 0C0B1EAF */ jal get_variable
|
||||
/* 0FA1F0 802D5840 8C450000 */ lw $a1, ($v0)
|
||||
/* 0FA1F4 802D5844 0C009C22 */ jal func_80027088
|
||||
/* 0FA1F8 802D5848 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 0FA1FC 802D584C 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* 0FA200 802D5850 24020002 */ addiu $v0, $zero, 2
|
||||
/* 0FA204 802D5854 03E00008 */ jr $ra
|
||||
/* 0FA208 802D5858 27BD0018 */ addiu $sp, $sp, 0x18
|
||||
|
@ -1,42 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
|
||||
glabel func_802D585C
|
||||
/* 0FA20C 802D585C 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 0FA210 802D5860 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 0FA214 802D5864 0080882D */ daddu $s1, $a0, $zero
|
||||
/* 0FA218 802D5868 AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* 0FA21C 802D586C AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 0FA220 802D5870 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* 0FA224 802D5874 8E050000 */ lw $a1, ($s0)
|
||||
/* 0FA228 802D5878 0C0B1EAF */ jal get_variable
|
||||
/* 0FA22C 802D587C 26100004 */ addiu $s0, $s0, 4
|
||||
/* 0FA230 802D5880 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 0FA234 802D5884 8E050000 */ lw $a1, ($s0)
|
||||
/* 0FA238 802D5888 0C0B1EAF */ jal get_variable
|
||||
/* 0FA23C 802D588C 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 0FA240 802D5890 12000007 */ beqz $s0, .L802D58B0
|
||||
/* 0FA244 802D5894 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 0FA248 802D5898 3C03800A */ lui $v1, 0x800a
|
||||
/* 0FA24C 802D589C 2463A650 */ addiu $v1, $v1, -0x59b0
|
||||
/* 0FA250 802D58A0 8C620000 */ lw $v0, ($v1)
|
||||
/* 0FA254 802D58A4 00441025 */ or $v0, $v0, $a0
|
||||
/* 0FA258 802D58A8 080B5632 */ j .L802D58C8
|
||||
/* 0FA25C 802D58AC AC620000 */ sw $v0, ($v1)
|
||||
|
||||
.L802D58B0:
|
||||
/* 0FA260 802D58B0 3C02800A */ lui $v0, 0x800a
|
||||
/* 0FA264 802D58B4 2442A650 */ addiu $v0, $v0, -0x59b0
|
||||
/* 0FA268 802D58B8 8C430000 */ lw $v1, ($v0)
|
||||
/* 0FA26C 802D58BC 00042027 */ nor $a0, $zero, $a0
|
||||
/* 0FA270 802D58C0 00641824 */ and $v1, $v1, $a0
|
||||
/* 0FA274 802D58C4 AC430000 */ sw $v1, ($v0)
|
||||
.L802D58C8:
|
||||
/* 0FA278 802D58C8 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* 0FA27C 802D58CC 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 0FA280 802D58D0 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 0FA284 802D58D4 24020002 */ addiu $v0, $zero, 2
|
||||
/* 0FA288 802D58D8 03E00008 */ jr $ra
|
||||
/* 0FA28C 802D58DC 27BD0020 */ addiu $sp, $sp, 0x20
|
||||
|
@ -17,13 +17,16 @@ void set_script_timescale(script_context* script, f32 timescale);
|
||||
f32 sin_deg(f32 x);
|
||||
f32 cos_deg(f32 x);
|
||||
f32 atan2(f32 startX, f32 startZ, f32 endX, f32 endZ);
|
||||
f32 clamp_angle(f32 theta);
|
||||
s32 func_80055448(s32);
|
||||
s32 func_80055464(s32, s32);
|
||||
s32 func_800554A4(s32, s32);
|
||||
s32 func_800554E8(s32, s32);
|
||||
s32 func_800555E4(s32);
|
||||
void func_80137D88(s32, f32);
|
||||
void func_80137DA4(s32, f32);
|
||||
void func_80137E10(s32, u8, u8, u8);
|
||||
void func_80137E4C(s32, s32, s32, s32);
|
||||
s32 rand_int(s32);
|
||||
void sort_items(void);
|
||||
s32 is_ability_active(s32 arg0);
|
||||
@ -35,6 +38,7 @@ npc* resolve_npc(script_context* script, NPC npcID);
|
||||
|
||||
f32 dist2D(f32 ax, f32 ay, f32 bx, f32 by);
|
||||
f32 dist3D(f32 ax, f32 ay, f32 az, f32 bx, f32 by, f32 bz);
|
||||
void add_vec2D_polar(f32* x, f32* y, f32 r, f32 theta);
|
||||
|
||||
s32 play_sound_at_position(s32 soundID, s32 value2, f32 posX, f32 posY, f32 posZ);
|
||||
s32 set_music_track(s32 musicPlayer, s32 songID, s32 variation, s32 unk, s32 volume);
|
||||
|
@ -50,4 +50,6 @@ extern u16 D_800A0940;
|
||||
extern u16 D_800A0942;
|
||||
extern s16 D_800A0944;
|
||||
|
||||
extern f32 D_BF800000;
|
||||
|
||||
#endif
|
||||
|
@ -48,7 +48,7 @@ INCLUDE_ASM(code_42e0_len_1f60, signF);
|
||||
|
||||
INCLUDE_ASM(code_42e0_len_1f60, round);
|
||||
|
||||
INCLUDE_ASM(code_42e0_len_1f60, clamp_angle);
|
||||
f32 INCLUDE_ASM(code_42e0_len_1f60, clamp_angle, f32 theta);
|
||||
|
||||
INCLUDE_ASM(code_42e0_len_1f60, get_clamped_angle_diff);
|
||||
|
||||
@ -62,7 +62,7 @@ f32 INCLUDE_ASM(code_42e0_len_1f60, dist2D, f32 ax, f32 ay, f32 bx, f32 by);
|
||||
|
||||
f32 INCLUDE_ASM(code_42e0_len_1f60, dist3D, f32 ax, f32 ay, f32 az, f32 bx, f32 by, f32 bz);
|
||||
|
||||
INCLUDE_ASM(code_42e0_len_1f60, add_vec2D_polar);
|
||||
void INCLUDE_ASM(code_42e0_len_1f60, add_vec2D_polar, f32* x, f32* y, f32 r, f32 theta);
|
||||
|
||||
INCLUDE_ASM(code_42e0_len_1f60, _wrap_trig_lookup_value);
|
||||
|
||||
|
@ -4,13 +4,13 @@ INCLUDE_ASM(code_cd180_len_38f0, func_80136A80);
|
||||
|
||||
void INCLUDE_ASM(code_cd180_len_38f0, func_80137D88, s32 arg0, f32 arg1);
|
||||
|
||||
INCLUDE_ASM(code_cd180_len_38f0, func_80137DA4);
|
||||
void INCLUDE_ASM(code_cd180_len_38f0, func_80137DA4, s32 arg0, f32 arg1);
|
||||
|
||||
INCLUDE_ASM(code_cd180_len_38f0, func_80137DC0);
|
||||
|
||||
void INCLUDE_ASM(code_cd180_len_38f0, func_80137E10, s32 arg0, u8 arg1, u8 arg2, u8 arg3);
|
||||
|
||||
INCLUDE_ASM(code_cd180_len_38f0, func_80137E4C);
|
||||
void INCLUDE_ASM(code_cd180_len_38f0, func_80137E4C, s32 arg0, s32 arg1, s32 arg2, s32 arg3);
|
||||
|
||||
INCLUDE_ASM(code_cd180_len_38f0, func_801380D4);
|
||||
|
||||
|
@ -170,7 +170,87 @@ s32 AwaitPlayerLeave(script_context* script, s32 initialCall) {
|
||||
}
|
||||
}
|
||||
|
||||
INCLUDE_ASM(code_f8f60_len_1560, AddVectorPolar);
|
||||
s32 AddVectorPolar(script_context* script, s32 initialCall) {
|
||||
bytecode* ptrReadPos = script->ptrReadPos;
|
||||
|
||||
bytecode xVar = *ptrReadPos++;
|
||||
f32 x = get_float_variable(script, xVar);
|
||||
|
||||
bytecode yVar = *ptrReadPos++;
|
||||
f32 y = get_float_variable(script, yVar);
|
||||
|
||||
f32 r = get_float_variable(script, *ptrReadPos++);
|
||||
|
||||
add_vec2D_polar(&x, &y, r, get_float_variable(script, *ptrReadPos++));
|
||||
|
||||
set_float_variable(script, xVar, x);
|
||||
set_float_variable(script, yVar, y);
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(code_f8f60_len_1560, func_802D4BDC);
|
||||
/*
|
||||
s32 func_802D4BDC(script_context* script, s32 initialCall) {
|
||||
s32* t0 = &script->functionTemp[0];
|
||||
s32* t1 = &script->functionTemp[1];
|
||||
s32 t1v;
|
||||
|
||||
if (initialCall) {
|
||||
*t0 = 0;
|
||||
*t1 = 0;
|
||||
}
|
||||
|
||||
if (*t0 == 0) {
|
||||
t1v = *t1;
|
||||
if (t1v != 0xFF) {
|
||||
t1v += 0xA;
|
||||
*t1 = t1v;
|
||||
if (t1v < 0x100) {
|
||||
// Void, debug stuff was probably here
|
||||
}
|
||||
t1v = 0xFF;
|
||||
func_80137DA4(0xA, (f32) *t1);
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
|
||||
// Very similar to func_802D4BDC
|
||||
INCLUDE_ASM(code_f8f60_len_1560, func_802D4C4C);
|
||||
|
||||
INCLUDE_ASM(code_f8f60_len_1560, func_802D4CC4);
|
||||
/*
|
||||
s32 func_802D4CC4(script_context* script, s32 initialCall) {
|
||||
s32 value = get_variable(script, *script->ptrReadPos);
|
||||
if (value < 0) {
|
||||
func_80137DA4(0xFF, D_BF800000);
|
||||
} else {
|
||||
func_80137DA4(0xA, value);
|
||||
}
|
||||
|
||||
return 2;
|
||||
}
|
||||
*/
|
||||
|
||||
s32 func_802D4D18(script_context* script, s32 initialCall) {
|
||||
s32 value = get_float_variable(script, *script->ptrReadPos);
|
||||
|
||||
func_80137E4C(0, 0, 0xC, 0x14);
|
||||
func_80137E4C(0, 1, 0x134, 0xDC);
|
||||
func_80137D88(0xC, value);
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
s32 func_802D4D88(script_context* script, s32 initialCall) {
|
||||
func_80137D88(0xC, 0);
|
||||
return 2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(code_f8f60_len_1560, setup_path_data);
|
||||
|
||||
@ -194,13 +274,47 @@ s32 GetDist2D(script_context* script, s32 initialCall) {
|
||||
return 2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(code_f8f60_len_1560, func_802D5830);
|
||||
s32 func_802D5830(script_context* script, s32 initialCall) {
|
||||
func_80027088(get_variable(script, *script->ptrReadPos));
|
||||
return 2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(code_f8f60_len_1560, func_802D585C);
|
||||
s32 func_802D585C(script_context* script, s32 initialCall) {
|
||||
bytecode* ptrReadPos = script->ptrReadPos;
|
||||
s32 setMode = get_variable(script, *ptrReadPos++);
|
||||
s32 flags = get_variable(script, *ptrReadPos++);
|
||||
|
||||
INCLUDE_ASM(code_f8f60_len_1560, SetValueByRef);
|
||||
if (setMode) {
|
||||
// Set flag
|
||||
D_8009A650[0] |= flags;
|
||||
} else {
|
||||
// Unset flag
|
||||
D_8009A650[0] &= ~flags;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(code_f8f60_len_1560, GetValueByRef);
|
||||
return 2;
|
||||
}
|
||||
|
||||
s32 SetValueByRef(script_context* script, s32 initialCall) {
|
||||
bytecode* ptrReadPos = script->ptrReadPos;
|
||||
|
||||
s32 dest = get_variable(script, *ptrReadPos++); /* Reference */
|
||||
s32 src = get_variable(script, *ptrReadPos++);
|
||||
set_variable(script, dest, src);
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
s32 GetValueByRef(script_context* script, s32 initialCall) {
|
||||
bytecode* ptrReadPos = script->ptrReadPos;
|
||||
|
||||
s32 src = get_variable(script, *ptrReadPos++); /* Reference */
|
||||
bytecode dest = *ptrReadPos++;
|
||||
|
||||
set_variable(script, dest, get_variable(script, src));
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
s32 EnableStatusMenu(script_context* script, s32 initialCall) {
|
||||
if (get_variable(script, *script->ptrReadPos) != 0) {
|
||||
@ -223,8 +337,26 @@ s32 ShowStatusMenu(script_context* script, s32 initialCall) {
|
||||
return 2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(code_f8f60_len_1560, SetGameMode);
|
||||
s32 SetGameMode(script_context* script, s32 initialCall) {
|
||||
set_game_mode(
|
||||
// Clear upper half
|
||||
(get_variable(script, *script->ptrReadPos) << 0x10) >> 0x10
|
||||
);
|
||||
return 2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(code_f8f60_len_1560, ClampAngleInt);
|
||||
s32 ClampAngleInt(script_context* script, s32 initialCall) {
|
||||
bytecode* ptrReadPos = script->ptrReadPos;
|
||||
|
||||
INCLUDE_ASM(code_f8f60_len_1560, ClampAngleFloat);
|
||||
set_variable(script, *ptrReadPos, clamp_angle(get_variable(script, *ptrReadPos)));
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
s32 ClampAngleFloat(script_context* script, s32 initialCall) {
|
||||
bytecode* ptrReadPos = script->ptrReadPos;
|
||||
|
||||
set_float_variable(script, *ptrReadPos, clamp_angle(get_float_variable(script, *ptrReadPos)));
|
||||
|
||||
return 2;
|
||||
}
|
@ -139,3 +139,5 @@ func_802B71D4 = 0x802B71D4;
|
||||
func_802B71E8 = 0x802B71E8;
|
||||
func_802BD7DC = 0x802BD7DC;
|
||||
func_802BE070 = 0x802BE070;
|
||||
|
||||
D_BF800000 = 0xBF800000;
|
Loading…
Reference in New Issue
Block a user