papermario/ver/jp/asm/nonmatchings/1F240/func_80045240.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

42 lines
2.0 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80045240
/* 20640 80045240 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 20644 80045244 AFB00010 */ sw $s0, 0x10($sp)
/* 20648 80045248 0080802D */ daddu $s0, $a0, $zero
/* 2064C 8004524C AFBF001C */ sw $ra, 0x1c($sp)
/* 20650 80045250 AFB20018 */ sw $s2, 0x18($sp)
/* 20654 80045254 AFB10014 */ sw $s1, 0x14($sp)
/* 20658 80045258 8E04014C */ lw $a0, 0x14c($s0)
/* 2065C 8004525C 8E12000C */ lw $s2, 0xc($s0)
/* 20660 80045260 0C00E9EB */ jal func_8003A7AC
/* 20664 80045264 8E110148 */ lw $s1, 0x148($s0)
/* 20668 80045268 0200202D */ daddu $a0, $s0, $zero
/* 2066C 8004526C 8E450000 */ lw $a1, ($s2)
/* 20670 80045270 0C0B1EAF */ jal func_802C7ABC
/* 20674 80045274 0040802D */ daddu $s0, $v0, $zero
/* 20678 80045278 A2220007 */ sb $v0, 7($s1)
/* 2067C 8004527C C6000038 */ lwc1 $f0, 0x38($s0)
/* 20680 80045280 4600008D */ trunc.w.s $f2, $f0
/* 20684 80045284 44021000 */ mfc1 $v0, $f2
/* 20688 80045288 00000000 */ nop
/* 2068C 8004528C A6220010 */ sh $v0, 0x10($s1)
/* 20690 80045290 C600003C */ lwc1 $f0, 0x3c($s0)
/* 20694 80045294 4600008D */ trunc.w.s $f2, $f0
/* 20698 80045298 44021000 */ mfc1 $v0, $f2
/* 2069C 8004529C 00000000 */ nop
/* 206A0 800452A0 A6220012 */ sh $v0, 0x12($s1)
/* 206A4 800452A4 C6000040 */ lwc1 $f0, 0x40($s0)
/* 206A8 800452A8 4600008D */ trunc.w.s $f2, $f0
/* 206AC 800452AC 44031000 */ mfc1 $v1, $f2
/* 206B0 800452B0 00000000 */ nop
/* 206B4 800452B4 A6230014 */ sh $v1, 0x14($s1)
/* 206B8 800452B8 8FBF001C */ lw $ra, 0x1c($sp)
/* 206BC 800452BC 8FB20018 */ lw $s2, 0x18($sp)
/* 206C0 800452C0 8FB10014 */ lw $s1, 0x14($sp)
/* 206C4 800452C4 8FB00010 */ lw $s0, 0x10($sp)
/* 206C8 800452C8 24020002 */ addiu $v0, $zero, 2
/* 206CC 800452CC 03E00008 */ jr $ra
/* 206D0 800452D0 27BD0020 */ addiu $sp, $sp, 0x20