papermario/ver/us/asm/nonmatchings/163400/func_80242D94.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

27 lines
1.2 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80242D94
/* 1635F4 80242D94 80820004 */ lb $v0, 4($a0)
/* 1635F8 80242D98 80830005 */ lb $v1, 5($a0)
/* 1635FC 80242D9C 00430018 */ mult $v0, $v1
/* 163600 80242DA0 00003812 */ mflo $a3
/* 163604 80242DA4 80820006 */ lb $v0, 6($a0)
/* 163608 80242DA8 00000000 */ nop
/* 16360C 80242DAC 00E20018 */ mult $a3, $v0
/* 163610 80242DB0 00003812 */ mflo $a3
/* 163614 80242DB4 00061600 */ sll $v0, $a2, 0x18
/* 163618 80242DB8 00021603 */ sra $v0, $v0, 0x18
/* 16361C 80242DBC 00620018 */ mult $v1, $v0
/* 163620 80242DC0 A0850001 */ sb $a1, 1($a0)
/* 163624 80242DC4 80850001 */ lb $a1, 1($a0)
/* 163628 80242DC8 A0860002 */ sb $a2, 2($a0)
/* 16362C 80242DCC 00001012 */ mflo $v0
/* 163630 80242DD0 00E21821 */ addu $v1, $a3, $v0
/* 163634 80242DD4 8C820008 */ lw $v0, 8($a0)
/* 163638 80242DD8 00651821 */ addu $v1, $v1, $a1
/* 16363C 80242DDC 00431021 */ addu $v0, $v0, $v1
/* 163640 80242DE0 90420000 */ lbu $v0, ($v0)
/* 163644 80242DE4 03E00008 */ jr $ra
/* 163648 80242DE8 A0820003 */ sb $v0, 3($a0)