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>
102 lines
5.0 KiB
ArmAsm
102 lines
5.0 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_8003C668
|
|
/* 17A68 8003C668 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
/* 17A6C 8003C66C AFB00018 */ sw $s0, 0x18($sp)
|
|
/* 17A70 8003C670 0080802D */ daddu $s0, $a0, $zero
|
|
/* 17A74 8003C674 AFB1001C */ sw $s1, 0x1c($sp)
|
|
/* 17A78 8003C678 00A0882D */ daddu $s1, $a1, $zero
|
|
/* 17A7C 8003C67C AFB20020 */ sw $s2, 0x20($sp)
|
|
/* 17A80 8003C680 02119021 */ addu $s2, $s0, $s1
|
|
/* 17A84 8003C684 AFBF0024 */ sw $ra, 0x24($sp)
|
|
/* 17A88 8003C688 82430330 */ lb $v1, 0x330($s2)
|
|
/* 17A8C 8003C68C 10600005 */ beqz $v1, .L8003C6A4
|
|
/* 17A90 8003C690 24020001 */ addiu $v0, $zero, 1
|
|
/* 17A94 8003C694 10620028 */ beq $v1, $v0, .L8003C738
|
|
/* 17A98 8003C698 00111080 */ sll $v0, $s1, 2
|
|
/* 17A9C 8003C69C 0800F1F2 */ j .L8003C7C8
|
|
/* 17AA0 8003C6A0 00000000 */ nop
|
|
.L8003C6A4:
|
|
/* 17AA4 8003C6A4 860200A8 */ lh $v0, 0xa8($s0)
|
|
/* 17AA8 8003C6A8 3C013FE0 */ lui $at, 0x3fe0
|
|
/* 17AAC 8003C6AC 44810800 */ mtc1 $at, $f1
|
|
/* 17AB0 8003C6B0 44800000 */ mtc1 $zero, $f0
|
|
/* 17AB4 8003C6B4 44822000 */ mtc1 $v0, $f4
|
|
/* 17AB8 8003C6B8 00000000 */ nop
|
|
/* 17ABC 8003C6BC 46802121 */ cvt.d.w $f4, $f4
|
|
/* 17AC0 8003C6C0 46202102 */ mul.d $f4, $f4, $f0
|
|
/* 17AC4 8003C6C4 00000000 */ nop
|
|
/* 17AC8 8003C6C8 C6000054 */ lwc1 $f0, 0x54($s0)
|
|
/* 17ACC 8003C6CC 3C01800A */ lui $at, %hi(D_80098508)
|
|
/* 17AD0 8003C6D0 D4228508 */ ldc1 $f2, %lo(D_80098508)($at)
|
|
/* 17AD4 8003C6D4 46000021 */ cvt.d.s $f0, $f0
|
|
/* 17AD8 8003C6D8 46220002 */ mul.d $f0, $f0, $f2
|
|
/* 17ADC 8003C6DC 00000000 */ nop
|
|
/* 17AE0 8003C6E0 3C01800A */ lui $at, %hi(D_80098510)
|
|
/* 17AE4 8003C6E4 D4228510 */ ldc1 $f2, %lo(D_80098510)($at)
|
|
/* 17AE8 8003C6E8 46220000 */ add.d $f0, $f0, $f2
|
|
/* 17AEC 8003C6EC C602003C */ lwc1 $f2, 0x3c($s0)
|
|
/* 17AF0 8003C6F0 2402FFFF */ addiu $v0, $zero, -1
|
|
/* 17AF4 8003C6F4 AFA20014 */ sw $v0, 0x14($sp)
|
|
/* 17AF8 8003C6F8 460010A1 */ cvt.d.s $f2, $f2
|
|
/* 17AFC 8003C6FC 46241080 */ add.d $f2, $f2, $f4
|
|
/* 17B00 8003C700 46200020 */ cvt.s.d $f0, $f0
|
|
/* 17B04 8003C704 E7A00010 */ swc1 $f0, 0x10($sp)
|
|
/* 17B08 8003C708 8E050038 */ lw $a1, 0x38($s0)
|
|
/* 17B0C 8003C70C 8E070040 */ lw $a3, 0x40($s0)
|
|
/* 17B10 8003C710 462010A0 */ cvt.s.d $f2, $f2
|
|
/* 17B14 8003C714 44061000 */ mfc1 $a2, $f2
|
|
/* 17B18 8003C718 0C01C5CC */ jal func_80071730
|
|
/* 17B1C 8003C71C 24040002 */ addiu $a0, $zero, 2
|
|
/* 17B20 8003C720 00111880 */ sll $v1, $s1, 2
|
|
/* 17B24 8003C724 02031821 */ addu $v1, $s0, $v1
|
|
/* 17B28 8003C728 AC620324 */ sw $v0, 0x324($v1)
|
|
/* 17B2C 8003C72C 24020001 */ addiu $v0, $zero, 1
|
|
/* 17B30 8003C730 0800F1F2 */ j .L8003C7C8
|
|
/* 17B34 8003C734 A2420330 */ sb $v0, 0x330($s2)
|
|
.L8003C738:
|
|
/* 17B38 8003C738 02021021 */ addu $v0, $s0, $v0
|
|
/* 17B3C 8003C73C 8C420324 */ lw $v0, 0x324($v0)
|
|
/* 17B40 8003C740 C6000038 */ lwc1 $f0, 0x38($s0)
|
|
/* 17B44 8003C744 8C43000C */ lw $v1, 0xc($v0)
|
|
/* 17B48 8003C748 E4600004 */ swc1 $f0, 4($v1)
|
|
/* 17B4C 8003C74C 860200A8 */ lh $v0, 0xa8($s0)
|
|
/* 17B50 8003C750 3C013FE0 */ lui $at, 0x3fe0
|
|
/* 17B54 8003C754 44810800 */ mtc1 $at, $f1
|
|
/* 17B58 8003C758 44800000 */ mtc1 $zero, $f0
|
|
/* 17B5C 8003C75C 44821000 */ mtc1 $v0, $f2
|
|
/* 17B60 8003C760 00000000 */ nop
|
|
/* 17B64 8003C764 468010A1 */ cvt.d.w $f2, $f2
|
|
/* 17B68 8003C768 46201082 */ mul.d $f2, $f2, $f0
|
|
/* 17B6C 8003C76C 00000000 */ nop
|
|
/* 17B70 8003C770 C6000054 */ lwc1 $f0, 0x54($s0)
|
|
/* 17B74 8003C774 46000021 */ cvt.d.s $f0, $f0
|
|
/* 17B78 8003C778 46201082 */ mul.d $f2, $f2, $f0
|
|
/* 17B7C 8003C77C 00000000 */ nop
|
|
/* 17B80 8003C780 C600003C */ lwc1 $f0, 0x3c($s0)
|
|
/* 17B84 8003C784 46000021 */ cvt.d.s $f0, $f0
|
|
/* 17B88 8003C788 46220000 */ add.d $f0, $f0, $f2
|
|
/* 17B8C 8003C78C 46200020 */ cvt.s.d $f0, $f0
|
|
/* 17B90 8003C790 E4600008 */ swc1 $f0, 8($v1)
|
|
/* 17B94 8003C794 C6000040 */ lwc1 $f0, 0x40($s0)
|
|
/* 17B98 8003C798 E460000C */ swc1 $f0, 0xc($v1)
|
|
/* 17B9C 8003C79C C6000054 */ lwc1 $f0, 0x54($s0)
|
|
/* 17BA0 8003C7A0 3C01800A */ lui $at, %hi(D_80098518)
|
|
/* 17BA4 8003C7A4 D4228518 */ ldc1 $f2, %lo(D_80098518)($at)
|
|
/* 17BA8 8003C7A8 46000021 */ cvt.d.s $f0, $f0
|
|
/* 17BAC 8003C7AC 46220002 */ mul.d $f0, $f0, $f2
|
|
/* 17BB0 8003C7B0 00000000 */ nop
|
|
/* 17BB4 8003C7B4 3C01800A */ lui $at, %hi(D_80098520)
|
|
/* 17BB8 8003C7B8 D4228520 */ ldc1 $f2, %lo(D_80098520)($at)
|
|
/* 17BBC 8003C7BC 46220000 */ add.d $f0, $f0, $f2
|
|
/* 17BC0 8003C7C0 46200020 */ cvt.s.d $f0, $f0
|
|
/* 17BC4 8003C7C4 E4600030 */ swc1 $f0, 0x30($v1)
|
|
.L8003C7C8:
|
|
/* 17BC8 8003C7C8 8FBF0024 */ lw $ra, 0x24($sp)
|
|
/* 17BCC 8003C7CC 8FB20020 */ lw $s2, 0x20($sp)
|
|
/* 17BD0 8003C7D0 8FB1001C */ lw $s1, 0x1c($sp)
|
|
/* 17BD4 8003C7D4 8FB00018 */ lw $s0, 0x18($sp)
|
|
/* 17BD8 8003C7D8 03E00008 */ jr $ra
|
|
/* 17BDC 8003C7DC 27BD0028 */ addiu $sp, $sp, 0x28
|