papermario/ver/us/asm/nonmatchings/163400/func_802437B8.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

31 lines
1.5 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802437B8
/* 164018 802437B8 3C028016 */ lui $v0, %hi(gUIPanels)
/* 16401C 802437BC 24429D50 */ addiu $v0, $v0, %lo(gUIPanels)
/* 164020 802437C0 00042140 */ sll $a0, $a0, 5
/* 164024 802437C4 00822021 */ addu $a0, $a0, $v0
/* 164028 802437C8 9083001C */ lbu $v1, 0x1c($a0)
/* 16402C 802437CC 2862000A */ slti $v0, $v1, 0xa
/* 164030 802437D0 10400008 */ beqz $v0, .L802437F4
/* 164034 802437D4 00031040 */ sll $v0, $v1, 1
/* 164038 802437D8 3C038025 */ lui $v1, %hi(D_80249CE0)
/* 16403C 802437DC 00621821 */ addu $v1, $v1, $v0
/* 164040 802437E0 84639CE0 */ lh $v1, %lo(D_80249CE0)($v1)
/* 164044 802437E4 8CE20000 */ lw $v0, ($a3)
/* 164048 802437E8 00431023 */ subu $v0, $v0, $v1
/* 16404C 802437EC 03E00008 */ jr $ra
/* 164050 802437F0 ACE20000 */ sw $v0, ($a3)
.L802437F4:
/* 164054 802437F4 3C028025 */ lui $v0, %hi(D_80249CF2)
/* 164058 802437F8 84429CF2 */ lh $v0, %lo(D_80249CF2)($v0)
/* 16405C 802437FC 8CE30000 */ lw $v1, ($a3)
/* 164060 80243800 00621823 */ subu $v1, $v1, $v0
/* 164064 80243804 ACE30000 */ sw $v1, ($a3)
/* 164068 80243808 90820000 */ lbu $v0, ($a0)
/* 16406C 8024380C 304200F7 */ andi $v0, $v0, 0xf7
/* 164070 80243810 34420004 */ ori $v0, $v0, 4
/* 164074 80243814 03E00008 */ jr $ra
/* 164078 80243818 A0820000 */ sb $v0, ($a0)