mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +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>
81 lines
3.9 KiB
ArmAsm
81 lines
3.9 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_8003C328
|
|
/* 17728 8003C328 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
/* 1772C 8003C32C AFB00018 */ sw $s0, 0x18($sp)
|
|
/* 17730 8003C330 0080802D */ daddu $s0, $a0, $zero
|
|
/* 17734 8003C334 AFB1001C */ sw $s1, 0x1c($sp)
|
|
/* 17738 8003C338 00A0882D */ daddu $s1, $a1, $zero
|
|
/* 1773C 8003C33C AFB20020 */ sw $s2, 0x20($sp)
|
|
/* 17740 8003C340 02119021 */ addu $s2, $s0, $s1
|
|
/* 17744 8003C344 AFBF0024 */ sw $ra, 0x24($sp)
|
|
/* 17748 8003C348 82430330 */ lb $v1, 0x330($s2)
|
|
/* 1774C 8003C34C 10600005 */ beqz $v1, .L8003C364
|
|
/* 17750 8003C350 24020001 */ addiu $v0, $zero, 1
|
|
/* 17754 8003C354 10620012 */ beq $v1, $v0, .L8003C3A0
|
|
/* 17758 8003C358 00111080 */ sll $v0, $s1, 2
|
|
/* 1775C 8003C35C 0800F10D */ j .L8003C434
|
|
/* 17760 8003C360 00000000 */ nop
|
|
.L8003C364:
|
|
/* 17764 8003C364 00111080 */ sll $v0, $s1, 2
|
|
/* 17768 8003C368 24420324 */ addiu $v0, $v0, 0x324
|
|
/* 1776C 8003C36C 3C013F80 */ lui $at, 0x3f80
|
|
/* 17770 8003C370 44810000 */ mtc1 $at, $f0
|
|
/* 17774 8003C374 02021021 */ addu $v0, $s0, $v0
|
|
/* 17778 8003C378 AFA20014 */ sw $v0, 0x14($sp)
|
|
/* 1777C 8003C37C E7A00010 */ swc1 $f0, 0x10($sp)
|
|
/* 17780 8003C380 8E050038 */ lw $a1, 0x38($s0)
|
|
/* 17784 8003C384 8E06003C */ lw $a2, 0x3c($s0)
|
|
/* 17788 8003C388 8E070040 */ lw $a3, 0x40($s0)
|
|
/* 1778C 8003C38C 0C01C3A4 */ jal func_80070E90
|
|
/* 17790 8003C390 24040002 */ addiu $a0, $zero, 2
|
|
/* 17794 8003C394 24020001 */ addiu $v0, $zero, 1
|
|
/* 17798 8003C398 A2420330 */ sb $v0, 0x330($s2)
|
|
/* 1779C 8003C39C 00111080 */ sll $v0, $s1, 2
|
|
.L8003C3A0:
|
|
/* 177A0 8003C3A0 02021021 */ addu $v0, $s0, $v0
|
|
/* 177A4 8003C3A4 8C420324 */ lw $v0, 0x324($v0)
|
|
/* 177A8 8003C3A8 C6000038 */ lwc1 $f0, 0x38($s0)
|
|
/* 177AC 8003C3AC 8C43000C */ lw $v1, 0xc($v0)
|
|
/* 177B0 8003C3B0 E4600004 */ swc1 $f0, 4($v1)
|
|
/* 177B4 8003C3B4 C600003C */ lwc1 $f0, 0x3c($s0)
|
|
/* 177B8 8003C3B8 E4600008 */ swc1 $f0, 8($v1)
|
|
/* 177BC 8003C3BC C6000040 */ lwc1 $f0, 0x40($s0)
|
|
/* 177C0 8003C3C0 E460000C */ swc1 $f0, 0xc($v1)
|
|
/* 177C4 8003C3C4 860200A6 */ lh $v0, 0xa6($s0)
|
|
/* 177C8 8003C3C8 C6000054 */ lwc1 $f0, 0x54($s0)
|
|
/* 177CC 8003C3CC 44821000 */ mtc1 $v0, $f2
|
|
/* 177D0 8003C3D0 00000000 */ nop
|
|
/* 177D4 8003C3D4 468010A0 */ cvt.s.w $f2, $f2
|
|
/* 177D8 8003C3D8 46020002 */ mul.s $f0, $f0, $f2
|
|
/* 177DC 8003C3DC 00000000 */ nop
|
|
/* 177E0 8003C3E0 3C01800A */ lui $at, %hi(D_80098500)
|
|
/* 177E4 8003C3E4 D4248500 */ ldc1 $f4, %lo(D_80098500)($at)
|
|
/* 177E8 8003C3E8 46000021 */ cvt.d.s $f0, $f0
|
|
/* 177EC 8003C3EC 46240002 */ mul.d $f0, $f0, $f4
|
|
/* 177F0 8003C3F0 00000000 */ nop
|
|
/* 177F4 8003C3F4 46200020 */ cvt.s.d $f0, $f0
|
|
/* 177F8 8003C3F8 E460001C */ swc1 $f0, 0x1c($v1)
|
|
/* 177FC 8003C3FC 860200A8 */ lh $v0, 0xa8($s0)
|
|
/* 17800 8003C400 C6000058 */ lwc1 $f0, 0x58($s0)
|
|
/* 17804 8003C404 44821000 */ mtc1 $v0, $f2
|
|
/* 17808 8003C408 00000000 */ nop
|
|
/* 1780C 8003C40C 468010A0 */ cvt.s.w $f2, $f2
|
|
/* 17810 8003C410 46020002 */ mul.s $f0, $f0, $f2
|
|
/* 17814 8003C414 00000000 */ nop
|
|
/* 17818 8003C418 46000021 */ cvt.d.s $f0, $f0
|
|
/* 1781C 8003C41C 46240002 */ mul.d $f0, $f0, $f4
|
|
/* 17820 8003C420 00000000 */ nop
|
|
/* 17824 8003C424 46200020 */ cvt.s.d $f0, $f0
|
|
/* 17828 8003C428 E4600020 */ swc1 $f0, 0x20($v1)
|
|
/* 1782C 8003C42C C6000034 */ lwc1 $f0, 0x34($s0)
|
|
/* 17830 8003C430 E4600064 */ swc1 $f0, 0x64($v1)
|
|
.L8003C434:
|
|
/* 17834 8003C434 8FBF0024 */ lw $ra, 0x24($sp)
|
|
/* 17838 8003C438 8FB20020 */ lw $s2, 0x20($sp)
|
|
/* 1783C 8003C43C 8FB1001C */ lw $s1, 0x1c($sp)
|
|
/* 17840 8003C440 8FB00018 */ lw $s0, 0x18($sp)
|
|
/* 17844 8003C444 03E00008 */ jr $ra
|
|
/* 17848 8003C448 27BD0028 */ addiu $sp, $sp, 0x28
|