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

39 lines
1.6 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80029FF4
/* 53F4 80029FF4 3C014980 */ lui $at, 0x4980
/* 53F8 80029FF8 44812000 */ mtc1 $at, $f4
/* 53FC 80029FFC 00000000 */ nop
/* 5400 8002A000 460C203E */ c.le.s $f4, $f12
/* 5404 8002A004 00000000 */ nop
/* 5408 8002A008 45010008 */ bc1t .L8002A02C
/* 540C 8002A00C 46006086 */ mov.s $f2, $f12
/* 5410 8002A010 3C01C980 */ lui $at, 0xc980
/* 5414 8002A014 44810000 */ mtc1 $at, $f0
/* 5418 8002A018 00000000 */ nop
/* 541C 8002A01C 4600603E */ c.le.s $f12, $f0
/* 5420 8002A020 00000000 */ nop
/* 5424 8002A024 4500000F */ bc1f .L8002A064
/* 5428 8002A028 00000000 */ nop
.L8002A02C:
/* 542C 8002A02C 3C013580 */ lui $at, 0x3580
/* 5430 8002A030 44810000 */ mtc1 $at, $f0
/* 5434 8002A034 00000000 */ nop
/* 5438 8002A038 46006302 */ mul.s $f12, $f12, $f0
/* 543C 8002A03C 00000000 */ nop
/* 5440 8002A040 4600618D */ trunc.w.s $f6, $f12
/* 5444 8002A044 44023000 */ mfc1 $v0, $f6
/* 5448 8002A048 00000000 */ nop
/* 544C 8002A04C 44820000 */ mtc1 $v0, $f0
/* 5450 8002A050 00000000 */ nop
/* 5454 8002A054 46800020 */ cvt.s.w $f0, $f0
/* 5458 8002A058 46040002 */ mul.s $f0, $f0, $f4
/* 545C 8002A05C 00000000 */ nop
/* 5460 8002A060 46001301 */ sub.s $f12, $f2, $f0
.L8002A064:
/* 5464 8002A064 4600618D */ trunc.w.s $f6, $f12
/* 5468 8002A068 44023000 */ mfc1 $v0, $f6
/* 546C 8002A06C 03E00008 */ jr $ra
/* 5470 8002A070 3042FFFF */ andi $v0, $v0, 0xffff