papermario/ver/us/asm/nonmatchings/a5dd0_len_114e0/func_80111790.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.2 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80111790
/* A7E90 80111790 0000282D */ daddu $a1, $zero, $zero
/* A7E94 80111794 3C048015 */ lui $a0, %hi(gCurrentEntityListPtr)
/* A7E98 80111798 8C841470 */ lw $a0, %lo(gCurrentEntityListPtr)($a0)
.L8011179C:
/* A7E9C 8011179C 8C820000 */ lw $v0, ($a0)
/* A7EA0 801117A0 10400009 */ beqz $v0, .L801117C8
/* A7EA4 801117A4 24A50001 */ addiu $a1, $a1, 1
/* A7EA8 801117A8 8C430038 */ lw $v1, 0x38($v0)
/* A7EAC 801117AC 8C620018 */ lw $v0, 0x18($v1)
/* A7EB0 801117B0 10400005 */ beqz $v0, .L801117C8
/* A7EB4 801117B4 00000000 */ nop
/* A7EB8 801117B8 14430004 */ bne $v0, $v1, .L801117CC
/* A7EBC 801117BC 28A2001E */ slti $v0, $a1, 0x1e
/* A7EC0 801117C0 03E00008 */ jr $ra
/* A7EC4 801117C4 24020001 */ addiu $v0, $zero, 1
.L801117C8:
/* A7EC8 801117C8 28A2001E */ slti $v0, $a1, 0x1e
.L801117CC:
/* A7ECC 801117CC 1440FFF3 */ bnez $v0, .L8011179C
/* A7ED0 801117D0 24840004 */ addiu $a0, $a0, 4
/* A7ED4 801117D4 03E00008 */ jr $ra
/* A7ED8 801117D8 0000102D */ daddu $v0, $zero, $zero