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

27 lines
1.3 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80057AB8
/* 32EB8 80057AB8 0000302D */ daddu $a2, $zero, $zero
/* 32EBC 80057ABC 3C05800A */ lui $a1, %hi(D_800A1DF0)
/* 32EC0 80057AC0 8CA51DF0 */ lw $a1, %lo(D_800A1DF0)($a1)
/* 32EC4 80057AC4 3C03800A */ lui $v1, %hi(D_800A1DF4)
/* 32EC8 80057AC8 8C631DF4 */ lw $v1, %lo(D_800A1DF4)($v1)
.L80057ACC:
/* 32ECC 80057ACC ACA00000 */ sw $zero, ($a1)
/* 32ED0 80057AD0 24A50004 */ addiu $a1, $a1, 4
/* 32ED4 80057AD4 AC600000 */ sw $zero, ($v1)
/* 32ED8 80057AD8 24C60001 */ addiu $a2, $a2, 1
/* 32EDC 80057ADC 28C20170 */ slti $v0, $a2, 0x170
/* 32EE0 80057AE0 1440FFFA */ bnez $v0, .L80057ACC
/* 32EE4 80057AE4 24630004 */ addiu $v1, $v1, 4
/* 32EE8 80057AE8 24020001 */ addiu $v0, $zero, 1
/* 32EEC 80057AEC 3C01800A */ lui $at, %hi(D_800A1DFC)
/* 32EF0 80057AF0 A0241DFC */ sb $a0, %lo(D_800A1DFC)($at)
/* 32EF4 80057AF4 3C01800A */ lui $at, %hi(D_800A1DFE)
/* 32EF8 80057AF8 A4221DFE */ sh $v0, %lo(D_800A1DFE)($at)
/* 32EFC 80057AFC 3C01800A */ lui $at, %hi(D_800A1DF8)
/* 32F00 80057B00 AC201DF8 */ sw $zero, %lo(D_800A1DF8)($at)
/* 32F04 80057B04 03E00008 */ jr $ra
/* 32F08 80057B08 00000000 */ nop