papermario/ver/us/asm/nonmatchings/18F340/func_802610CC.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.3 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802610CC
/* 18F9AC 802610CC 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 18F9B0 802610D0 AFB00010 */ sw $s0, 0x10($sp)
/* 18F9B4 802610D4 0080802D */ daddu $s0, $a0, $zero
/* 18F9B8 802610D8 10A0000E */ beqz $a1, .L80261114
/* 18F9BC 802610DC AFBF0014 */ sw $ra, 0x14($sp)
/* 18F9C0 802610E0 0C04760B */ jal func_8011D82C
/* 18F9C4 802610E4 24040001 */ addiu $a0, $zero, 1
/* 18F9C8 802610E8 0000202D */ daddu $a0, $zero, $zero
/* 18F9CC 802610EC 0080282D */ daddu $a1, $a0, $zero
/* 18F9D0 802610F0 0080302D */ daddu $a2, $a0, $zero
/* 18F9D4 802610F4 0080382D */ daddu $a3, $a0, $zero
/* 18F9D8 802610F8 3C028015 */ lui $v0, %hi(D_801512F0)
/* 18F9DC 802610FC 8C4212F0 */ lw $v0, %lo(D_801512F0)($v0)
/* 18F9E0 80261100 24030001 */ addiu $v1, $zero, 1
/* 18F9E4 80261104 0C046F97 */ jal set_background_color_blend
/* 18F9E8 80261108 A0430000 */ sb $v1, ($v0)
/* 18F9EC 8026110C 24020014 */ addiu $v0, $zero, 0x14
/* 18F9F0 80261110 AE020070 */ sw $v0, 0x70($s0)
.L80261114:
/* 18F9F4 80261114 0000202D */ daddu $a0, $zero, $zero
/* 18F9F8 80261118 0080282D */ daddu $a1, $a0, $zero
/* 18F9FC 8026111C 0080302D */ daddu $a2, $a0, $zero
/* 18FA00 80261120 8E030070 */ lw $v1, 0x70($s0)
/* 18FA04 80261124 24020014 */ addiu $v0, $zero, 0x14
/* 18FA08 80261128 00431023 */ subu $v0, $v0, $v1
/* 18FA0C 8026112C 00023840 */ sll $a3, $v0, 1
/* 18FA10 80261130 00E23821 */ addu $a3, $a3, $v0
/* 18FA14 80261134 00073880 */ sll $a3, $a3, 2
/* 18FA18 80261138 0C046F97 */ jal set_background_color_blend
/* 18FA1C 8026113C 30E700FC */ andi $a3, $a3, 0xfc
/* 18FA20 80261140 8E020070 */ lw $v0, 0x70($s0)
/* 18FA24 80261144 2442FFFF */ addiu $v0, $v0, -1
/* 18FA28 80261148 AE020070 */ sw $v0, 0x70($s0)
/* 18FA2C 8026114C 2C420001 */ sltiu $v0, $v0, 1
/* 18FA30 80261150 8FBF0014 */ lw $ra, 0x14($sp)
/* 18FA34 80261154 8FB00010 */ lw $s0, 0x10($sp)
/* 18FA38 80261158 00021040 */ sll $v0, $v0, 1
/* 18FA3C 8026115C 03E00008 */ jr $ra
/* 18FA40 80261160 27BD0018 */ addiu $sp, $sp, 0x18