papermario/ver/us/asm/nonmatchings/190B20/add_xz_vec3f_copy2.s
Ethan Roseman 3315d6010f
Splat refactor (#257)
* all non-world rodata migrated

* data disasm

* kinda working

* updated yaml

* bloop

* linker header

* configure 2.0

* bin

* mass rename to remove code_

* pause rename

* battle partner stuff

* whew

* more renames

* more renames

* more renaming

* it builds!

* updates

* remove main prefix

* one more thing

* crc, yay0

* .data, .rodata, .bss

* img

* dead_atan2

* it buildsgit add -A

* split battle/partner/6FAD10

* rm &s on sleepy_sheep syms

* sha1sum ninja rule description

* OK but commented out PaperMarioMapFS and PaperMarioNpcSprites

* uncomment

* fix mapfs

* match func_8003CFB4

* .

* clean up and name npc_iter_no_op

* npc.c

* enable cc warnings

* name npc_find_near

* use singular options.asset_path

* smores

* cc_dsl only when needed

* kinda fix configure for splat refactor2

* ok!

* new msg format

* remove old msg format docs

* slight bug fixes, splat adjustment

* git subrepo pull (merge) --force tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "cfc140bb76"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "cfc140bb76"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* git subrepo pull (merge) --force tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "85349befcd"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "85349befcd"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* Update symbol addrs

* git subrepo pull tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "a44631e194"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "a44631e194"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 16:47:52 +09:00

43 lines
2.1 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel add_xz_vec3f_copy2
/* 192B38 80264258 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 192B3C 8026425C F7B60020 */ sdc1 $f22, 0x20($sp)
/* 192B40 80264260 4485B000 */ mtc1 $a1, $f22
/* 192B44 80264264 3C0140C9 */ lui $at, 0x40c9
/* 192B48 80264268 34210FD0 */ ori $at, $at, 0xfd0
/* 192B4C 8026426C 44810000 */ mtc1 $at, $f0
/* 192B50 80264270 44862000 */ mtc1 $a2, $f4
/* 192B54 80264274 F7B40018 */ sdc1 $f20, 0x18($sp)
/* 192B58 80264278 46002502 */ mul.s $f20, $f4, $f0
/* 192B5C 8026427C 00000000 */ nop
/* 192B60 80264280 AFB00010 */ sw $s0, 0x10($sp)
/* 192B64 80264284 3C0143B4 */ lui $at, 0x43b4
/* 192B68 80264288 44810000 */ mtc1 $at, $f0
/* 192B6C 8026428C 0080802D */ daddu $s0, $a0, $zero
/* 192B70 80264290 AFBF0014 */ sw $ra, 0x14($sp)
/* 192B74 80264294 4600A503 */ div.s $f20, $f20, $f0
/* 192B78 80264298 0C00A85B */ jal sin_rad
/* 192B7C 8026429C 4600A306 */ mov.s $f12, $f20
/* 192B80 802642A0 4600A306 */ mov.s $f12, $f20
/* 192B84 802642A4 0C00A874 */ jal cos_rad
/* 192B88 802642A8 46000506 */ mov.s $f20, $f0
/* 192B8C 802642AC 4614B502 */ mul.s $f20, $f22, $f20
/* 192B90 802642B0 00000000 */ nop
/* 192B94 802642B4 4600B587 */ neg.s $f22, $f22
/* 192B98 802642B8 4600B582 */ mul.s $f22, $f22, $f0
/* 192B9C 802642BC 00000000 */ nop
/* 192BA0 802642C0 C6020000 */ lwc1 $f2, ($s0)
/* 192BA4 802642C4 46141080 */ add.s $f2, $f2, $f20
/* 192BA8 802642C8 C6000008 */ lwc1 $f0, 8($s0)
/* 192BAC 802642CC 46160000 */ add.s $f0, $f0, $f22
/* 192BB0 802642D0 E6020000 */ swc1 $f2, ($s0)
/* 192BB4 802642D4 E6000008 */ swc1 $f0, 8($s0)
/* 192BB8 802642D8 8FBF0014 */ lw $ra, 0x14($sp)
/* 192BBC 802642DC 8FB00010 */ lw $s0, 0x10($sp)
/* 192BC0 802642E0 D7B60020 */ ldc1 $f22, 0x20($sp)
/* 192BC4 802642E4 D7B40018 */ ldc1 $f20, 0x18($sp)
/* 192BC8 802642E8 03E00008 */ jr $ra
/* 192BCC 802642EC 27BD0028 */ addiu $sp, $sp, 0x28