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

22 lines
972 B
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80266D6C
/* 19564C 80266D6C 8C820094 */ lw $v0, 0x94($a0)
/* 195650 80266D70 1040000C */ beqz $v0, .L80266DA4
/* 195654 80266D74 00000000 */ nop
/* 195658 80266D78 8C820000 */ lw $v0, ($a0)
/* 19565C 80266D7C 30420002 */ andi $v0, $v0, 2
/* 195660 80266D80 14400008 */ bnez $v0, .L80266DA4
/* 195664 80266D84 00000000 */ nop
/* 195668 80266D88 8C8400C0 */ lw $a0, 0xc0($a0)
/* 19566C 80266D8C 808206C0 */ lb $v0, 0x6c0($a0)
/* 195670 80266D90 10450004 */ beq $v0, $a1, .L80266DA4
/* 195674 80266D94 24020001 */ addiu $v0, $zero, 1
/* 195678 80266D98 A08506C0 */ sb $a1, 0x6c0($a0)
/* 19567C 80266D9C A08006C2 */ sb $zero, 0x6c2($a0)
/* 195680 80266DA0 A08206C1 */ sb $v0, 0x6c1($a0)
.L80266DA4:
/* 195684 80266DA4 03E00008 */ jr $ra
/* 195688 80266DA8 00000000 */ nop