papermario/ver/jp/asm/nonmatchings/428E0/func_800674E0.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

38 lines
1.7 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800674E0
/* 428E0 800674E0 3C014780 */ lui $at, 0x4780
/* 428E4 800674E4 44810000 */ mtc1 $at, $f0
/* 428E8 800674E8 3C19FFFF */ lui $t9, 0xffff
/* 428EC 800674EC 24B80020 */ addiu $t8, $a1, 0x20
.L800674F0:
/* 428F0 800674F0 C4840000 */ lwc1 $f4, ($a0)
/* 428F4 800674F4 46002182 */ mul.s $f6, $f4, $f0
/* 428F8 800674F8 4600320D */ trunc.w.s $f8, $f6
/* 428FC 800674FC C48A0004 */ lwc1 $f10, 4($a0)
/* 42900 80067500 46005402 */ mul.s $f16, $f10, $f0
/* 42904 80067504 4600848D */ trunc.w.s $f18, $f16
/* 42908 80067508 44084000 */ mfc1 $t0, $f8
/* 4290C 8006750C 44099000 */ mfc1 $t1, $f18
/* 42910 80067510 01195024 */ and $t2, $t0, $t9
/* 42914 80067514 00095C02 */ srl $t3, $t1, 0x10
/* 42918 80067518 014B6025 */ or $t4, $t2, $t3
/* 4291C 8006751C ACAC0000 */ sw $t4, ($a1)
/* 42920 80067520 00086C00 */ sll $t5, $t0, 0x10
/* 42924 80067524 312EFFFF */ andi $t6, $t1, 0xffff
/* 42928 80067528 01AE7825 */ or $t7, $t5, $t6
/* 4292C 8006752C ACAF0020 */ sw $t7, 0x20($a1)
/* 42930 80067530 24A50004 */ addiu $a1, $a1, 4
/* 42934 80067534 14B8FFEE */ bne $a1, $t8, .L800674F0
/* 42938 80067538 24840008 */ addiu $a0, $a0, 8
/* 4293C 8006753C 03E00008 */ jr $ra
/* 42940 80067540 00000000 */ nop
/* 42944 80067544 00000000 */ nop
/* 42948 80067548 00000000 */ nop
/* 4294C 8006754C 00000000 */ nop
/* 42950 80067550 00000000 */ nop
/* 42954 80067554 00000000 */ nop
/* 42958 80067558 00000000 */ nop
/* 4295C 8006755C 00000000 */ nop