papermario/ver/us/asm/nonmatchings/EA36E0/func_80242E2C_EA372C.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

44 lines
2.1 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80242E2C_EA372C
/* EA372C 80242E2C 27BDFFD0 */ addiu $sp, $sp, -0x30
/* EA3730 80242E30 AFB00028 */ sw $s0, 0x28($sp)
/* EA3734 80242E34 0080802D */ daddu $s0, $a0, $zero
/* EA3738 80242E38 AFBF002C */ sw $ra, 0x2c($sp)
/* EA373C 80242E3C C6000084 */ lwc1 $f0, 0x84($s0)
/* EA3740 80242E40 46800020 */ cvt.s.w $f0, $f0
/* EA3744 80242E44 E7A00018 */ swc1 $f0, 0x18($sp)
/* EA3748 80242E48 C600008C */ lwc1 $f0, 0x8c($s0)
/* EA374C 80242E4C 46800020 */ cvt.s.w $f0, $f0
/* EA3750 80242E50 27A20024 */ addiu $v0, $sp, 0x24
/* EA3754 80242E54 3C040001 */ lui $a0, 1
/* EA3758 80242E58 27A50018 */ addiu $a1, $sp, 0x18
/* EA375C 80242E5C 27A6001C */ addiu $a2, $sp, 0x1c
/* EA3760 80242E60 3C0144FA */ lui $at, 0x44fa
/* EA3764 80242E64 44811000 */ mtc1 $at, $f2
/* EA3768 80242E68 27A70020 */ addiu $a3, $sp, 0x20
/* EA376C 80242E6C E7A0001C */ swc1 $f0, 0x1c($sp)
/* EA3770 80242E70 AFA00020 */ sw $zero, 0x20($sp)
/* EA3774 80242E74 E7A20024 */ swc1 $f2, 0x24($sp)
/* EA3778 80242E78 0C03908F */ jal func_800E423C
/* EA377C 80242E7C AFA20010 */ sw $v0, 0x10($sp)
/* EA3780 80242E80 1040000B */ beqz $v0, .L80242EB0
/* EA3784 80242E84 00000000 */ nop
/* EA3788 80242E88 C7A2001C */ lwc1 $f2, 0x1c($sp)
/* EA378C 80242E8C 3C01425C */ lui $at, 0x425c
/* EA3790 80242E90 44810000 */ mtc1 $at, $f0
/* EA3794 80242E94 00000000 */ nop
/* EA3798 80242E98 46001080 */ add.s $f2, $f2, $f0
/* EA379C 80242E9C C7A00018 */ lwc1 $f0, 0x18($sp)
/* EA37A0 80242EA0 4600010D */ trunc.w.s $f4, $f0
/* EA37A4 80242EA4 E6040084 */ swc1 $f4, 0x84($s0)
/* EA37A8 80242EA8 4600110D */ trunc.w.s $f4, $f2
/* EA37AC 80242EAC E604008C */ swc1 $f4, 0x8c($s0)
.L80242EB0:
/* EA37B0 80242EB0 8FBF002C */ lw $ra, 0x2c($sp)
/* EA37B4 80242EB4 8FB00028 */ lw $s0, 0x28($sp)
/* EA37B8 80242EB8 24020002 */ addiu $v0, $zero, 2
/* EA37BC 80242EBC 03E00008 */ jr $ra
/* EA37C0 80242EC0 27BD0030 */ addiu $sp, $sp, 0x30