papermario/ver/jp/asm/nonmatchings/3FE70/func_800654C0.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

28 lines
1.3 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800654C0
/* 408C0 800654C0 AFA50004 */ sw $a1, 4($sp)
/* 408C4 800654C4 AFA60008 */ sw $a2, 8($sp)
/* 408C8 800654C8 AFA7000C */ sw $a3, 0xc($sp)
/* 408CC 800654CC 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 408D0 800654D0 AFB00010 */ sw $s0, 0x10($sp)
/* 408D4 800654D4 00808021 */ addu $s0, $a0, $zero
/* 408D8 800654D8 00A03021 */ addu $a2, $a1, $zero
/* 408DC 800654DC 3C048006 */ lui $a0, %hi(func_80065518)
/* 408E0 800654E0 24845518 */ addiu $a0, $a0, %lo(func_80065518)
/* 408E4 800654E4 02002821 */ addu $a1, $s0, $zero
/* 408E8 800654E8 AFBF0014 */ sw $ra, 0x14($sp)
/* 408EC 800654EC 0C01929C */ jal _Printf
/* 408F0 800654F0 27A70020 */ addiu $a3, $sp, 0x20
/* 408F4 800654F4 00401821 */ addu $v1, $v0, $zero
/* 408F8 800654F8 04600002 */ bltz $v1, .L80065504
/* 408FC 800654FC 02031021 */ addu $v0, $s0, $v1
/* 40900 80065500 A0400000 */ sb $zero, ($v0)
.L80065504:
/* 40904 80065504 00601021 */ addu $v0, $v1, $zero
/* 40908 80065508 8FBF0014 */ lw $ra, 0x14($sp)
/* 4090C 8006550C 8FB00010 */ lw $s0, 0x10($sp)
/* 40910 80065510 03E00008 */ jr $ra
/* 40914 80065514 27BD0018 */ addiu $sp, $sp, 0x18