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

34 lines
1.4 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80029EEC
/* 52EC 80029EEC 44872000 */ mtc1 $a3, $f4
/* 52F0 80029EF0 00000000 */ nop
/* 52F4 80029EF4 460C2301 */ sub.s $f12, $f4, $f12
/* 52F8 80029EF8 460C6302 */ mul.s $f12, $f12, $f12
/* 52FC 80029EFC 00000000 */ nop
/* 5300 80029F00 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 5304 80029F04 C7A20028 */ lwc1 $f2, 0x28($sp)
/* 5308 80029F08 460E1081 */ sub.s $f2, $f2, $f14
/* 530C 80029F0C 46021082 */ mul.s $f2, $f2, $f2
/* 5310 80029F10 00000000 */ nop
/* 5314 80029F14 C7A0002C */ lwc1 $f0, 0x2c($sp)
/* 5318 80029F18 44862000 */ mtc1 $a2, $f4
/* 531C 80029F1C 00000000 */ nop
/* 5320 80029F20 46040001 */ sub.s $f0, $f0, $f4
/* 5324 80029F24 46000002 */ mul.s $f0, $f0, $f0
/* 5328 80029F28 00000000 */ nop
/* 532C 80029F2C 46026300 */ add.s $f12, $f12, $f2
/* 5330 80029F30 46006300 */ add.s $f12, $f12, $f0
/* 5334 80029F34 46006004 */ sqrt.s $f0, $f12
/* 5338 80029F38 46000032 */ c.eq.s $f0, $f0
/* 533C 80029F3C 00000000 */ nop
/* 5340 80029F40 45010003 */ bc1t .L80029F50
/* 5344 80029F44 AFBF0010 */ sw $ra, 0x10($sp)
/* 5348 80029F48 0C0187B0 */ jal func_80061EC0
/* 534C 80029F4C 00000000 */ nop
.L80029F50:
/* 5350 80029F50 8FBF0010 */ lw $ra, 0x10($sp)
/* 5354 80029F54 03E00008 */ jr $ra
/* 5358 80029F58 27BD0018 */ addiu $sp, $sp, 0x18