papermario/ver/jp/asm/nonmatchings/42960/func_80067560.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

38 lines
1.7 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80067560
/* 42960 80067560 3C013780 */ lui $at, 0x3780
/* 42964 80067564 44810000 */ mtc1 $at, $f0
/* 42968 80067568 3C19FFFF */ lui $t9, 0xffff
/* 4296C 8006756C 24B80020 */ addiu $t8, $a1, 0x20
.L80067570:
/* 42970 80067570 8CA80000 */ lw $t0, ($a1)
/* 42974 80067574 8CA90020 */ lw $t1, 0x20($a1)
/* 42978 80067578 01195024 */ and $t2, $t0, $t9
/* 4297C 8006757C 00095C02 */ srl $t3, $t1, 0x10
/* 42980 80067580 014B6025 */ or $t4, $t2, $t3
/* 42984 80067584 00086C00 */ sll $t5, $t0, 0x10
/* 42988 80067588 312EFFFF */ andi $t6, $t1, 0xffff
/* 4298C 8006758C 01AE7825 */ or $t7, $t5, $t6
/* 42990 80067590 448C2000 */ mtc1 $t4, $f4
/* 42994 80067594 00000000 */ nop
/* 42998 80067598 468021A0 */ cvt.s.w $f6, $f4
/* 4299C 8006759C 46003202 */ mul.s $f8, $f6, $f0
/* 429A0 800675A0 448F5000 */ mtc1 $t7, $f10
/* 429A4 800675A4 00000000 */ nop
/* 429A8 800675A8 46805420 */ cvt.s.w $f16, $f10
/* 429AC 800675AC 46008482 */ mul.s $f18, $f16, $f0
/* 429B0 800675B0 E4880000 */ swc1 $f8, ($a0)
/* 429B4 800675B4 E4920004 */ swc1 $f18, 4($a0)
/* 429B8 800675B8 24A50004 */ addiu $a1, $a1, 4
/* 429BC 800675BC 14B8FFEC */ bne $a1, $t8, .L80067570
/* 429C0 800675C0 24840008 */ addiu $a0, $a0, 8
/* 429C4 800675C4 03E00008 */ jr $ra
/* 429C8 800675C8 00000000 */ nop
/* 429CC 800675CC 00000000 */ nop
/* 429D0 800675D0 00000000 */ nop
/* 429D4 800675D4 00000000 */ nop
/* 429D8 800675D8 00000000 */ nop
/* 429DC 800675DC 00000000 */ nop