mirror of
https://github.com/pmret/papermario.git
synced 2024-11-14 23:13:10 +01:00
3315d6010f
* 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>
51 lines
2.2 KiB
ArmAsm
51 lines
2.2 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_80059BD4
|
|
/* 34FD4 80059BD4 C4800010 */ lwc1 $f0, 0x10($a0)
|
|
/* 34FD8 80059BD8 44851000 */ mtc1 $a1, $f2
|
|
/* 34FDC 80059BDC 00000000 */ nop
|
|
/* 34FE0 80059BE0 468010A0 */ cvt.s.w $f2, $f2
|
|
/* 34FE4 80059BE4 46020002 */ mul.s $f0, $f0, $f2
|
|
/* 34FE8 80059BE8 00000000 */ nop
|
|
/* 34FEC 80059BEC C4820014 */ lwc1 $f2, 0x14($a0)
|
|
/* 34FF0 80059BF0 46001080 */ add.s $f2, $f2, $f0
|
|
/* 34FF4 80059BF4 24820014 */ addiu $v0, $a0, 0x14
|
|
/* 34FF8 80059BF8 3C014000 */ lui $at, 0x4000
|
|
/* 34FFC 80059BFC 44810800 */ mtc1 $at, $f1
|
|
/* 35000 80059C00 44800000 */ mtc1 $zero, $f0
|
|
/* 35004 80059C04 46001121 */ cvt.d.s $f4, $f2
|
|
/* 35008 80059C08 4624003C */ c.lt.d $f0, $f4
|
|
/* 3500C 80059C0C 00000000 */ nop
|
|
/* 35010 80059C10 45000008 */ bc1f .L80059C34
|
|
/* 35014 80059C14 E4820014 */ swc1 $f2, 0x14($a0)
|
|
/* 35018 80059C18 3C014010 */ lui $at, 0x4010
|
|
/* 3501C 80059C1C 44810800 */ mtc1 $at, $f1
|
|
/* 35020 80059C20 44800000 */ mtc1 $zero, $f0
|
|
/* 35024 80059C24 00000000 */ nop
|
|
/* 35028 80059C28 46202001 */ sub.d $f0, $f4, $f0
|
|
/* 3502C 80059C2C 0801670E */ j .L80059C38
|
|
/* 35030 80059C30 46200020 */ cvt.s.d $f0, $f0
|
|
.L80059C34:
|
|
/* 35034 80059C34 46001006 */ mov.s $f0, $f2
|
|
.L80059C38:
|
|
/* 35038 80059C38 E4400000 */ swc1 $f0, ($v0)
|
|
/* 3503C 80059C3C C4820014 */ lwc1 $f2, 0x14($a0)
|
|
/* 35040 80059C40 44800000 */ mtc1 $zero, $f0
|
|
/* 35044 80059C44 00000000 */ nop
|
|
/* 35048 80059C48 4600103C */ c.lt.s $f2, $f0
|
|
/* 3504C 80059C4C 00000000 */ nop
|
|
/* 35050 80059C50 45030001 */ bc1tl .L80059C58
|
|
/* 35054 80059C54 46001087 */ neg.s $f2, $f2
|
|
.L80059C58:
|
|
/* 35058 80059C58 3C013FF0 */ lui $at, 0x3ff0
|
|
/* 3505C 80059C5C 44810800 */ mtc1 $at, $f1
|
|
/* 35060 80059C60 44800000 */ mtc1 $zero, $f0
|
|
/* 35064 80059C64 460010A1 */ cvt.d.s $f2, $f2
|
|
/* 35068 80059C68 46201081 */ sub.d $f2, $f2, $f0
|
|
/* 3506C 80059C6C C480001C */ lwc1 $f0, 0x1c($a0)
|
|
/* 35070 80059C70 462010A0 */ cvt.s.d $f2, $f2
|
|
/* 35074 80059C74 46020002 */ mul.s $f0, $f0, $f2
|
|
/* 35078 80059C78 03E00008 */ jr $ra
|
|
/* 3507C 80059C7C 00000000 */ nop
|