papermario/ver/jp/asm/nonmatchings/285C0/func_8004F9E8.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

30 lines
1.3 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8004F9E8
/* 2ADE8 8004F9E8 908200D4 */ lbu $v0, 0xd4($a0)
/* 2ADEC 8004F9EC 00823821 */ addu $a3, $a0, $v0
/* 2ADF0 8004F9F0 2C420004 */ sltiu $v0, $v0, 4
/* 2ADF4 8004F9F4 90E3004C */ lbu $v1, 0x4c($a3)
/* 2ADF8 8004F9F8 10400010 */ beqz $v0, .L8004FA3C
/* 2ADFC 8004F9FC 2C620080 */ sltiu $v0, $v1, 0x80
/* 2AE00 8004FA00 1040000E */ beqz $v0, .L8004FA3C
/* 2AE04 8004FA04 00033080 */ sll $a2, $v1, 2
/* 2AE08 8004FA08 8C820000 */ lw $v0, ($a0)
/* 2AE0C 8004FA0C 908300D5 */ lbu $v1, 0xd5($a0)
/* 2AE10 8004FA10 00462821 */ addu $a1, $v0, $a2
/* 2AE14 8004FA14 90A20040 */ lbu $v0, 0x40($a1)
/* 2AE18 8004FA18 10430006 */ beq $v0, $v1, .L8004FA34
/* 2AE1C 8004FA1C 00000000 */ nop
/* 2AE20 8004FA20 A0A30040 */ sb $v1, 0x40($a1)
/* 2AE24 8004FA24 8C820000 */ lw $v0, ($a0)
/* 2AE28 8004FA28 24030001 */ addiu $v1, $zero, 1
/* 2AE2C 8004FA2C 00461021 */ addu $v0, $v0, $a2
/* 2AE30 8004FA30 A0430041 */ sb $v1, 0x41($v0)
.L8004FA34:
/* 2AE34 8004FA34 908200D5 */ lbu $v0, 0xd5($a0)
/* 2AE38 8004FA38 A0E20224 */ sb $v0, 0x224($a3)
.L8004FA3C:
/* 2AE3C 8004FA3C 03E00008 */ jr $ra
/* 2AE40 8004FA40 00000000 */ nop