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

36 lines
1.7 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802433F4
/* 163C54 802433F4 3C028016 */ lui $v0, %hi(gUIPanels)
/* 163C58 802433F8 24429D50 */ addiu $v0, $v0, %lo(gUIPanels)
/* 163C5C 802433FC 00042140 */ sll $a0, $a0, 5
/* 163C60 80243400 00822021 */ addu $a0, $a0, $v0
/* 163C64 80243404 9083001C */ lbu $v1, 0x1c($a0)
/* 163C68 80243408 14600005 */ bnez $v1, .L80243420
/* 163C6C 8024340C 28620010 */ slti $v0, $v1, 0x10
/* 163C70 80243410 90820000 */ lbu $v0, ($a0)
/* 163C74 80243414 304200FB */ andi $v0, $v0, 0xfb
/* 163C78 80243418 A0820000 */ sb $v0, ($a0)
/* 163C7C 8024341C 28620010 */ slti $v0, $v1, 0x10
.L80243420:
/* 163C80 80243420 10400008 */ beqz $v0, .L80243444
/* 163C84 80243424 00031040 */ sll $v0, $v1, 1
/* 163C88 80243428 3C038025 */ lui $v1, %hi(D_80249BFC)
/* 163C8C 8024342C 00621821 */ addu $v1, $v1, $v0
/* 163C90 80243430 84639BFC */ lh $v1, %lo(D_80249BFC)($v1)
/* 163C94 80243434 8CC20000 */ lw $v0, ($a2)
/* 163C98 80243438 00431023 */ subu $v0, $v0, $v1
/* 163C9C 8024343C 03E00008 */ jr $ra
/* 163CA0 80243440 ACC20000 */ sw $v0, ($a2)
.L80243444:
/* 163CA4 80243444 3C028025 */ lui $v0, %hi(D_80249C1A)
/* 163CA8 80243448 84429C1A */ lh $v0, %lo(D_80249C1A)($v0)
/* 163CAC 8024344C 8CC30000 */ lw $v1, ($a2)
/* 163CB0 80243450 00621823 */ subu $v1, $v1, $v0
/* 163CB4 80243454 ACC30000 */ sw $v1, ($a2)
/* 163CB8 80243458 90820000 */ lbu $v0, ($a0)
/* 163CBC 8024345C 304200F7 */ andi $v0, $v0, 0xf7
/* 163CC0 80243460 03E00008 */ jr $ra
/* 163CC4 80243464 A0820000 */ sb $v0, ($a0)