papermario/ver/us/asm/nonmatchings/fee30_len_2d60/func_802DE9D8.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

32 lines
1.5 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802DE9D8
/* 101AC8 802DE9D8 0080382D */ daddu $a3, $a0, $zero
/* 101ACC 802DE9DC 00052880 */ sll $a1, $a1, 2
/* 101AD0 802DE9E0 3C04802E */ lui $a0, %hi(D_802DF5B0)
/* 101AD4 802DE9E4 00852021 */ addu $a0, $a0, $a1
/* 101AD8 802DE9E8 8C84F5B0 */ lw $a0, %lo(D_802DF5B0)($a0)
/* 101ADC 802DE9EC 14800003 */ bnez $a0, .L802DE9FC
/* 101AE0 802DE9F0 00061080 */ sll $v0, $a2, 2
/* 101AE4 802DE9F4 03E00008 */ jr $ra
/* 101AE8 802DE9F8 0000102D */ daddu $v0, $zero, $zero
.L802DE9FC:
/* 101AEC 802DE9FC 8C830000 */ lw $v1, ($a0)
/* 101AF0 802DEA00 00431021 */ addu $v0, $v0, $v1
/* 101AF4 802DEA04 8C430000 */ lw $v1, ($v0)
/* 101AF8 802DEA08 8C840004 */ lw $a0, 4($a0)
/* 101AFC 802DEA0C 8C620000 */ lw $v0, ($v1)
/* 101B00 802DEA10 ACE20000 */ sw $v0, ($a3)
/* 101B04 802DEA14 90620004 */ lbu $v0, 4($v1)
/* 101B08 802DEA18 ACE20008 */ sw $v0, 8($a3)
/* 101B0C 802DEA1C 90620005 */ lbu $v0, 5($v1)
/* 101B10 802DEA20 ACE2000C */ sw $v0, 0xc($a3)
/* 101B14 802DEA24 80620006 */ lb $v0, 6($v1)
/* 101B18 802DEA28 00021080 */ sll $v0, $v0, 2
/* 101B1C 802DEA2C 00441021 */ addu $v0, $v0, $a0
/* 101B20 802DEA30 8C430000 */ lw $v1, ($v0)
/* 101B24 802DEA34 24020001 */ addiu $v0, $zero, 1
/* 101B28 802DEA38 03E00008 */ jr $ra
/* 101B2C 802DEA3C ACE30004 */ sw $v1, 4($a3)