papermario/ver/jp/asm/nonmatchings/8490/func_8002E4BC.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

64 lines
3.1 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8002E4BC
/* 98BC 8002E4BC 00A0302D */ daddu $a2, $a1, $zero
/* 98C0 8002E4C0 3C05800B */ lui $a1, %hi(D_800B1D60)
/* 98C4 8002E4C4 24A51D60 */ addiu $a1, $a1, %lo(D_800B1D60)
/* 98C8 8002E4C8 00041080 */ sll $v0, $a0, 2
/* 98CC 8002E4CC 00441021 */ addu $v0, $v0, $a0
/* 98D0 8002E4D0 00021080 */ sll $v0, $v0, 2
/* 98D4 8002E4D4 00441023 */ subu $v0, $v0, $a0
/* 98D8 8002E4D8 000218C0 */ sll $v1, $v0, 3
/* 98DC 8002E4DC 00431021 */ addu $v0, $v0, $v1
/* 98E0 8002E4E0 000210C0 */ sll $v0, $v0, 3
/* 98E4 8002E4E4 00452021 */ addu $a0, $v0, $a1
/* 98E8 8002E4E8 94820212 */ lhu $v0, 0x212($a0)
/* 98EC 8002E4EC 24420001 */ addiu $v0, $v0, 1
/* 98F0 8002E4F0 A4820212 */ sh $v0, 0x212($a0)
/* 98F4 8002E4F4 00021400 */ sll $v0, $v0, 0x10
/* 98F8 8002E4F8 00021403 */ sra $v0, $v0, 0x10
/* 98FC 8002E4FC 28420004 */ slti $v0, $v0, 4
/* 9900 8002E500 14400003 */ bnez $v0, .L8002E510
/* 9904 8002E504 00000000 */ nop
.L8002E508:
/* 9908 8002E508 0800B942 */ j .L8002E508
/* 990C 8002E50C 00000000 */ nop
.L8002E510:
/* 9910 8002E510 84830212 */ lh $v1, 0x212($a0)
/* 9914 8002E514 000310C0 */ sll $v0, $v1, 3
/* 9918 8002E518 00431021 */ addu $v0, $v0, $v1
/* 991C 8002E51C 00021080 */ sll $v0, $v0, 2
/* 9920 8002E520 00431023 */ subu $v0, $v0, $v1
/* 9924 8002E524 00021080 */ sll $v0, $v0, 2
/* 9928 8002E528 00821021 */ addu $v0, $a0, $v0
/* 992C 8002E52C AC460220 */ sw $a2, 0x220($v0)
/* 9930 8002E530 84830212 */ lh $v1, 0x212($a0)
/* 9934 8002E534 000310C0 */ sll $v0, $v1, 3
/* 9938 8002E538 00431021 */ addu $v0, $v0, $v1
/* 993C 8002E53C 00021080 */ sll $v0, $v0, 2
/* 9940 8002E540 00431023 */ subu $v0, $v0, $v1
/* 9944 8002E544 00021080 */ sll $v0, $v0, 2
/* 9948 8002E548 00821021 */ addu $v0, $a0, $v0
/* 994C 8002E54C 24030001 */ addiu $v1, $zero, 1
/* 9950 8002E550 A4430216 */ sh $v1, 0x216($v0)
/* 9954 8002E554 84830212 */ lh $v1, 0x212($a0)
/* 9958 8002E558 000310C0 */ sll $v0, $v1, 3
/* 995C 8002E55C 00431021 */ addu $v0, $v0, $v1
/* 9960 8002E560 00021080 */ sll $v0, $v0, 2
/* 9964 8002E564 00431023 */ subu $v0, $v0, $v1
/* 9968 8002E568 00021080 */ sll $v0, $v0, 2
/* 996C 8002E56C 00821021 */ addu $v0, $a0, $v0
/* 9970 8002E570 AC460278 */ sw $a2, 0x278($v0)
/* 9974 8002E574 84830212 */ lh $v1, 0x212($a0)
/* 9978 8002E578 000310C0 */ sll $v0, $v1, 3
/* 997C 8002E57C 00431021 */ addu $v0, $v0, $v1
/* 9980 8002E580 00021080 */ sll $v0, $v0, 2
/* 9984 8002E584 00431023 */ subu $v0, $v0, $v1
/* 9988 8002E588 00021080 */ sll $v0, $v0, 2
/* 998C 8002E58C 00821021 */ addu $v0, $a0, $v0
/* 9990 8002E590 03E00008 */ jr $ra
/* 9994 8002E594 A4400214 */ sh $zero, 0x214($v0)
/* 9998 8002E598 00000000 */ nop
/* 999C 8002E59C 00000000 */ nop