papermario/ver/us/asm/nonmatchings/B4580/play_model_animation.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

26 lines
1.2 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel play_model_animation
/* B6848 80120148 2402F7FF */ addiu $v0, $zero, -0x801
/* B684C 8012014C 00822024 */ and $a0, $a0, $v0
/* B6850 80120150 3C028015 */ lui $v0, %hi(gCurrentAnimMeshListPtr)
/* B6854 80120154 8C423A40 */ lw $v0, %lo(gCurrentAnimMeshListPtr)($v0)
/* B6858 80120158 00042080 */ sll $a0, $a0, 2
/* B685C 8012015C 00822021 */ addu $a0, $a0, $v0
/* B6860 80120160 8C840000 */ lw $a0, ($a0)
/* B6864 80120164 8C8300DC */ lw $v1, 0xdc($a0)
/* B6868 80120168 10600004 */ beqz $v1, .L8012017C
/* B686C 8012016C 3C0200FF */ lui $v0, 0xff
/* B6870 80120170 3442FFFF */ ori $v0, $v0, 0xffff
/* B6874 80120174 00A21024 */ and $v0, $a1, $v0
/* B6878 80120178 00432821 */ addu $a1, $v0, $v1
.L8012017C:
/* B687C 8012017C 3C013F80 */ lui $at, 0x3f80
/* B6880 80120180 44810000 */ mtc1 $at, $f0
/* B6884 80120184 AC850008 */ sw $a1, 8($a0)
/* B6888 80120188 AC85000C */ sw $a1, 0xc($a0)
/* B688C 8012018C AC8002CC */ sw $zero, 0x2cc($a0)
/* B6890 80120190 03E00008 */ jr $ra
/* B6894 80120194 E4800090 */ swc1 $f0, 0x90($a0)