papermario/ver/us/asm/nonmatchings/190B20/func_80266E40.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

34 lines
1.5 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80266E40
/* 195720 80266E40 8C8401F4 */ lw $a0, 0x1f4($a0)
/* 195724 80266E44 10800016 */ beqz $a0, .L80266EA0
/* 195728 80266E48 3C060010 */ lui $a2, 0x10
/* 19572C 80266E4C 34C60001 */ ori $a2, $a2, 1
/* 195730 80266E50 2408000E */ addiu $t0, $zero, 0xe
/* 195734 80266E54 2407000F */ addiu $a3, $zero, 0xf
.L80266E58:
/* 195738 80266E58 8C8500C0 */ lw $a1, 0xc0($a0)
/* 19573C 80266E5C 8C830000 */ lw $v1, ($a0)
/* 195740 80266E60 00661024 */ and $v0, $v1, $a2
/* 195744 80266E64 1440000B */ bnez $v0, .L80266E94
/* 195748 80266E68 00000000 */ nop
/* 19574C 80266E6C 8C820094 */ lw $v0, 0x94($a0)
/* 195750 80266E70 10400008 */ beqz $v0, .L80266E94
/* 195754 80266E74 30620002 */ andi $v0, $v1, 2
/* 195758 80266E78 14400006 */ bnez $v0, .L80266E94
/* 19575C 80266E7C 00000000 */ nop
/* 195760 80266E80 80A206C0 */ lb $v0, 0x6c0($a1)
/* 195764 80266E84 10480003 */ beq $v0, $t0, .L80266E94
/* 195768 80266E88 00000000 */ nop
/* 19576C 80266E8C 54470001 */ bnel $v0, $a3, .L80266E94
/* 195770 80266E90 A0A006C0 */ sb $zero, 0x6c0($a1)
.L80266E94:
/* 195774 80266E94 8C84000C */ lw $a0, 0xc($a0)
/* 195778 80266E98 1480FFEF */ bnez $a0, .L80266E58
/* 19577C 80266E9C 00000000 */ nop
.L80266EA0:
/* 195780 80266EA0 03E00008 */ jr $ra
/* 195784 80266EA4 00000000 */ nop