papermario/ver/jp/asm/nonmatchings/264F0/func_8004CBEC.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

58 lines
2.9 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8004CBEC
/* 27FEC 8004CBEC 8CA20000 */ lw $v0, ($a1)
/* 27FF0 8004CBF0 8CA4001C */ lw $a0, 0x1c($a1)
/* 27FF4 8004CBF4 90430000 */ lbu $v1, ($v0)
/* 27FF8 8004CBF8 24420001 */ addiu $v0, $v0, 1
/* 27FFC 8004CBFC ACA20000 */ sw $v0, ($a1)
/* 28000 8004CC00 3063007F */ andi $v1, $v1, 0x7f
/* 28004 8004CC04 A0A3009E */ sb $v1, 0x9e($a1)
/* 28008 8004CC08 8C820000 */ lw $v0, ($a0)
/* 2800C 8004CC0C ACA20020 */ sw $v0, 0x20($a1)
/* 28010 8004CC10 8C820004 */ lw $v0, 4($a0)
/* 28014 8004CC14 ACA20024 */ sw $v0, 0x24($a1)
/* 28018 8004CC18 8C820008 */ lw $v0, 8($a0)
/* 2801C 8004CC1C ACA20028 */ sw $v0, 0x28($a1)
/* 28020 8004CC20 8C82000C */ lw $v0, 0xc($a0)
/* 28024 8004CC24 ACA2002C */ sw $v0, 0x2c($a1)
/* 28028 8004CC28 8C820010 */ lw $v0, 0x10($a0)
/* 2802C 8004CC2C ACA20030 */ sw $v0, 0x30($a1)
/* 28030 8004CC30 8C820014 */ lw $v0, 0x14($a0)
/* 28034 8004CC34 ACA20034 */ sw $v0, 0x34($a1)
/* 28038 8004CC38 8C820018 */ lw $v0, 0x18($a0)
/* 2803C 8004CC3C ACA20038 */ sw $v0, 0x38($a1)
/* 28040 8004CC40 9482001C */ lhu $v0, 0x1c($a0)
/* 28044 8004CC44 A4A2003C */ sh $v0, 0x3c($a1)
/* 28048 8004CC48 9482001E */ lhu $v0, 0x1e($a0)
/* 2804C 8004CC4C A4A2003E */ sh $v0, 0x3e($a1)
/* 28050 8004CC50 C4800020 */ lwc1 $f0, 0x20($a0)
/* 28054 8004CC54 E4A00040 */ swc1 $f0, 0x40($a1)
/* 28058 8004CC58 90820024 */ lbu $v0, 0x24($a0)
/* 2805C 8004CC5C A0A20044 */ sb $v0, 0x44($a1)
/* 28060 8004CC60 90A2009E */ lbu $v0, 0x9e($a1)
/* 28064 8004CC64 90830025 */ lbu $v1, 0x25($a0)
/* 28068 8004CC68 00021080 */ sll $v0, $v0, 2
/* 2806C 8004CC6C A0A30045 */ sb $v1, 0x45($a1)
/* 28070 8004CC70 3C018008 */ lui $at, %hi(D_80078390)
/* 28074 8004CC74 00220821 */ addu $at, $at, $v0
/* 28078 8004CC78 8C228390 */ lw $v0, %lo(D_80078390)($at)
/* 2807C 8004CC7C ACA2004C */ sw $v0, 0x4c($a1)
/* 28080 8004CC80 0040182D */ daddu $v1, $v0, $zero
/* 28084 8004CC84 24A20020 */ addiu $v0, $a1, 0x20
/* 28088 8004CC88 1060000A */ beqz $v1, .L8004CCB4
/* 2808C 8004CC8C ACA2001C */ sw $v0, 0x1c($a1)
/* 28090 8004CC90 90620000 */ lbu $v0, ($v1)
/* 28094 8004CC94 10400007 */ beqz $v0, .L8004CCB4
/* 28098 8004CC98 00000000 */ nop
/* 2809C 8004CC9C 94620004 */ lhu $v0, 4($v1)
/* 280A0 8004CCA0 00431021 */ addu $v0, $v0, $v1
/* 280A4 8004CCA4 ACA20010 */ sw $v0, 0x10($a1)
/* 280A8 8004CCA8 94620006 */ lhu $v0, 6($v1)
/* 280AC 8004CCAC 00431021 */ addu $v0, $v0, $v1
/* 280B0 8004CCB0 ACA20014 */ sw $v0, 0x14($a1)
.L8004CCB4:
/* 280B4 8004CCB4 03E00008 */ jr $ra
/* 280B8 8004CCB8 00000000 */ nop