mirror of
https://github.com/pmret/papermario.git
synced 2024-11-14 15:03:25 +01:00
45 lines
2.0 KiB
ArmAsm
45 lines
2.0 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel add_xz_vec3f
|
|
/* 192A08 80264128 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
/* 192A0C 8026412C F7B60020 */ sdc1 $f22, 0x20($sp)
|
|
/* 192A10 80264130 4485B000 */ mtc1 $a1, $f22
|
|
/* 192A14 80264134 3C0140C9 */ lui $at, 0x40c9
|
|
/* 192A18 80264138 34210FD0 */ ori $at, $at, 0xfd0
|
|
/* 192A1C 8026413C 44810000 */ mtc1 $at, $f0
|
|
/* 192A20 80264140 44862000 */ mtc1 $a2, $f4
|
|
/* 192A24 80264144 F7B40018 */ sdc1 $f20, 0x18($sp)
|
|
/* 192A28 80264148 46002502 */ mul.s $f20, $f4, $f0
|
|
/* 192A2C 8026414C 00000000 */ nop
|
|
/* 192A30 80264150 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 192A34 80264154 3C0143B4 */ lui $at, 0x43b4
|
|
/* 192A38 80264158 44810000 */ mtc1 $at, $f0
|
|
/* 192A3C 8026415C 0080802D */ daddu $s0, $a0, $zero
|
|
/* 192A40 80264160 AFBF0014 */ sw $ra, 0x14($sp)
|
|
/* 192A44 80264164 4600A503 */ div.s $f20, $f20, $f0
|
|
/* 192A48 80264168 0C00A85B */ jal sin_rad
|
|
/* 192A4C 8026416C 4600A306 */ mov.s $f12, $f20
|
|
/* 192A50 80264170 4600A306 */ mov.s $f12, $f20
|
|
/* 192A54 80264174 0C00A874 */ jal cos_rad
|
|
/* 192A58 80264178 46000506 */ mov.s $f20, $f0
|
|
/* 192A5C 8026417C 4614B502 */ mul.s $f20, $f22, $f20
|
|
/* 192A60 80264180 00000000 */ nop
|
|
/* 192A64 80264184 4600B587 */ neg.s $f22, $f22
|
|
/* 192A68 80264188 4600B582 */ mul.s $f22, $f22, $f0
|
|
/* 192A6C 8026418C 00000000 */ nop
|
|
/* 192A70 80264190 C6020000 */ lwc1 $f2, ($s0)
|
|
/* 192A74 80264194 46141080 */ add.s $f2, $f2, $f20
|
|
/* 192A78 80264198 C6000008 */ lwc1 $f0, 8($s0)
|
|
/* 192A7C 8026419C 46160000 */ add.s $f0, $f0, $f22
|
|
/* 192A80 802641A0 E6020000 */ swc1 $f2, ($s0)
|
|
/* 192A84 802641A4 E6000008 */ swc1 $f0, 8($s0)
|
|
/* 192A88 802641A8 8FBF0014 */ lw $ra, 0x14($sp)
|
|
/* 192A8C 802641AC 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 192A90 802641B0 D7B60020 */ ldc1 $f22, 0x20($sp)
|
|
/* 192A94 802641B4 D7B40018 */ ldc1 $f20, 0x18($sp)
|
|
/* 192A98 802641B8 03E00008 */ jr $ra
|
|
/* 192A9C 802641BC 27BD0028 */ addiu $sp, $sp, 0x28
|
|
|