papermario/ver/jp/asm/nonmatchings/31300/func_80057BD0.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

37 lines
1.6 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80057BD0
/* 32FD0 80057BD0 30A3000F */ andi $v1, $a1, 0xf
/* 32FD4 80057BD4 24020010 */ addiu $v0, $zero, 0x10
/* 32FD8 80057BD8 00431823 */ subu $v1, $v0, $v1
/* 32FDC 80057BDC 10620003 */ beq $v1, $v0, .L80057BEC
/* 32FE0 80057BE0 00A31021 */ addu $v0, $a1, $v1
/* 32FE4 80057BE4 08015EFC */ j .L80057BF0
/* 32FE8 80057BE8 AC820000 */ sw $v0, ($a0)
.L80057BEC:
/* 32FEC 80057BEC AC850000 */ sw $a1, ($a0)
.L80057BF0:
/* 32FF0 80057BF0 AC860008 */ sw $a2, 8($a0)
/* 32FF4 80057BF4 00C0102D */ daddu $v0, $a2, $zero
/* 32FF8 80057BF8 0000282D */ daddu $a1, $zero, $zero
/* 32FFC 80057BFC 8C830000 */ lw $v1, ($a0)
/* 33000 80057C00 00021082 */ srl $v0, $v0, 2
/* 33004 80057C04 AC80000C */ sw $zero, 0xc($a0)
/* 33008 80057C08 1040000B */ beqz $v0, .L80057C38
/* 3300C 80057C0C AC830004 */ sw $v1, 4($a0)
.L80057C10:
/* 33010 80057C10 8C820000 */ lw $v0, ($a0)
/* 33014 80057C14 00051880 */ sll $v1, $a1, 2
/* 33018 80057C18 00621821 */ addu $v1, $v1, $v0
/* 3301C 80057C1C AC600000 */ sw $zero, ($v1)
/* 33020 80057C20 8C820008 */ lw $v0, 8($a0)
/* 33024 80057C24 24A50001 */ addiu $a1, $a1, 1
/* 33028 80057C28 00021082 */ srl $v0, $v0, 2
/* 3302C 80057C2C 00A2102B */ sltu $v0, $a1, $v0
/* 33030 80057C30 1440FFF7 */ bnez $v0, .L80057C10
/* 33034 80057C34 00000000 */ nop
.L80057C38:
/* 33038 80057C38 03E00008 */ jr $ra
/* 3303C 80057C3C 00000000 */ nop