papermario/ver/jp/asm/nonmatchings/42B0/func_800295E0.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

69 lines
3.2 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800295E0
/* 49E0 800295E0 44853000 */ mtc1 $a1, $f6
/* 49E4 800295E4 C4800000 */ lwc1 $f0, ($a0)
/* 49E8 800295E8 46060002 */ mul.s $f0, $f0, $f6
/* 49EC 800295EC 00000000 */ nop
/* 49F0 800295F0 44864000 */ mtc1 $a2, $f8
/* 49F4 800295F4 C4820010 */ lwc1 $f2, 0x10($a0)
/* 49F8 800295F8 46081082 */ mul.s $f2, $f2, $f8
/* 49FC 800295FC 00000000 */ nop
/* 4A00 80029600 44875000 */ mtc1 $a3, $f10
/* 4A04 80029604 C4840020 */ lwc1 $f4, 0x20($a0)
/* 4A08 80029608 460A2102 */ mul.s $f4, $f4, $f10
/* 4A0C 8002960C 00000000 */ nop
/* 4A10 80029610 46020000 */ add.s $f0, $f0, $f2
/* 4A14 80029614 8FA20014 */ lw $v0, 0x14($sp)
/* 4A18 80029618 8FA30018 */ lw $v1, 0x18($sp)
/* 4A1C 8002961C 46040000 */ add.s $f0, $f0, $f4
/* 4A20 80029620 C4820030 */ lwc1 $f2, 0x30($a0)
/* 4A24 80029624 8FA5001C */ lw $a1, 0x1c($sp)
/* 4A28 80029628 46020000 */ add.s $f0, $f0, $f2
/* 4A2C 8002962C 8FA60020 */ lw $a2, 0x20($sp)
/* 4A30 80029630 E4400000 */ swc1 $f0, ($v0)
/* 4A34 80029634 C4800004 */ lwc1 $f0, 4($a0)
/* 4A38 80029638 46060002 */ mul.s $f0, $f0, $f6
/* 4A3C 8002963C 00000000 */ nop
/* 4A40 80029640 C4840014 */ lwc1 $f4, 0x14($a0)
/* 4A44 80029644 46082102 */ mul.s $f4, $f4, $f8
/* 4A48 80029648 00000000 */ nop
/* 4A4C 8002964C C4820024 */ lwc1 $f2, 0x24($a0)
/* 4A50 80029650 460A1082 */ mul.s $f2, $f2, $f10
/* 4A54 80029654 00000000 */ nop
/* 4A58 80029658 46040000 */ add.s $f0, $f0, $f4
/* 4A5C 8002965C 46020000 */ add.s $f0, $f0, $f2
/* 4A60 80029660 C4820034 */ lwc1 $f2, 0x34($a0)
/* 4A64 80029664 46020000 */ add.s $f0, $f0, $f2
/* 4A68 80029668 E4600000 */ swc1 $f0, ($v1)
/* 4A6C 8002966C C4800008 */ lwc1 $f0, 8($a0)
/* 4A70 80029670 46060002 */ mul.s $f0, $f0, $f6
/* 4A74 80029674 00000000 */ nop
/* 4A78 80029678 C4840018 */ lwc1 $f4, 0x18($a0)
/* 4A7C 8002967C 46082102 */ mul.s $f4, $f4, $f8
/* 4A80 80029680 00000000 */ nop
/* 4A84 80029684 C4820028 */ lwc1 $f2, 0x28($a0)
/* 4A88 80029688 460A1082 */ mul.s $f2, $f2, $f10
/* 4A8C 8002968C 00000000 */ nop
/* 4A90 80029690 46040000 */ add.s $f0, $f0, $f4
/* 4A94 80029694 46020000 */ add.s $f0, $f0, $f2
/* 4A98 80029698 C4820038 */ lwc1 $f2, 0x38($a0)
/* 4A9C 8002969C 46020000 */ add.s $f0, $f0, $f2
/* 4AA0 800296A0 E4A00000 */ swc1 $f0, ($a1)
/* 4AA4 800296A4 C480000C */ lwc1 $f0, 0xc($a0)
/* 4AA8 800296A8 46060002 */ mul.s $f0, $f0, $f6
/* 4AAC 800296AC 00000000 */ nop
/* 4AB0 800296B0 C484001C */ lwc1 $f4, 0x1c($a0)
/* 4AB4 800296B4 46082102 */ mul.s $f4, $f4, $f8
/* 4AB8 800296B8 00000000 */ nop
/* 4ABC 800296BC C482002C */ lwc1 $f2, 0x2c($a0)
/* 4AC0 800296C0 460A1082 */ mul.s $f2, $f2, $f10
/* 4AC4 800296C4 00000000 */ nop
/* 4AC8 800296C8 46040000 */ add.s $f0, $f0, $f4
/* 4ACC 800296CC 46020000 */ add.s $f0, $f0, $f2
/* 4AD0 800296D0 C482003C */ lwc1 $f2, 0x3c($a0)
/* 4AD4 800296D4 46020000 */ add.s $f0, $f0, $f2
/* 4AD8 800296D8 03E00008 */ jr $ra
/* 4ADC 800296DC E4C00000 */ swc1 $f0, ($a2)