mirror of
https://github.com/pmret/papermario.git
synced 2024-11-14 06:52:35 +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>
234 lines
12 KiB
ArmAsm
234 lines
12 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_800F102C
|
|
/* 8A4DC 800F102C 27BDFF28 */ addiu $sp, $sp, -0xd8
|
|
/* 8A4E0 800F1030 3C090050 */ lui $t1, 0x50
|
|
/* 8A4E4 800F1034 352903C0 */ ori $t1, $t1, 0x3c0
|
|
/* 8A4E8 800F1038 3C0ADC08 */ lui $t2, 0xdc08
|
|
/* 8A4EC 800F103C 354A0008 */ ori $t2, $t2, 8
|
|
/* 8A4F0 800F1040 27A40020 */ addiu $a0, $sp, 0x20
|
|
/* 8A4F4 800F1044 AFB100A4 */ sw $s1, 0xa4($sp)
|
|
/* 8A4F8 800F1048 3C110001 */ lui $s1, 1
|
|
/* 8A4FC 800F104C 36311630 */ ori $s1, $s1, 0x1630
|
|
/* 8A500 800F1050 AFB700BC */ sw $s7, 0xbc($sp)
|
|
/* 8A504 800F1054 0000B82D */ daddu $s7, $zero, $zero
|
|
/* 8A508 800F1058 AFB600B8 */ sw $s6, 0xb8($sp)
|
|
/* 8A50C 800F105C 27B60060 */ addiu $s6, $sp, 0x60
|
|
/* 8A510 800F1060 3C02800A */ lui $v0, %hi(gDisplayContext)
|
|
/* 8A514 800F1064 2442A674 */ addiu $v0, $v0, %lo(gDisplayContext)
|
|
/* 8A518 800F1068 AFBE00C0 */ sw $fp, 0xc0($sp)
|
|
/* 8A51C 800F106C 0040F02D */ daddu $fp, $v0, $zero
|
|
/* 8A520 800F1070 3C028007 */ lui $v0, %hi(gMatrixListPos)
|
|
/* 8A524 800F1074 244241F0 */ addiu $v0, $v0, %lo(gMatrixListPos)
|
|
/* 8A528 800F1078 AFB300AC */ sw $s3, 0xac($sp)
|
|
/* 8A52C 800F107C 0040982D */ daddu $s3, $v0, $zero
|
|
/* 8A530 800F1080 AFB500B4 */ sw $s5, 0xb4($sp)
|
|
/* 8A534 800F1084 3C150001 */ lui $s5, 1
|
|
/* 8A538 800F1088 36B51630 */ ori $s5, $s5, 0x1630
|
|
/* 8A53C 800F108C AFB400B0 */ sw $s4, 0xb0($sp)
|
|
/* 8A540 800F1090 02E0A02D */ daddu $s4, $s7, $zero
|
|
/* 8A544 800F1094 AFB000A0 */ sw $s0, 0xa0($sp)
|
|
/* 8A548 800F1098 3C10800A */ lui $s0, %hi(gMasterGfxPos)
|
|
/* 8A54C 800F109C 2610A66C */ addiu $s0, $s0, %lo(gMasterGfxPos)
|
|
/* 8A550 800F10A0 3C02E700 */ lui $v0, 0xe700
|
|
/* 8A554 800F10A4 AFBF00C4 */ sw $ra, 0xc4($sp)
|
|
/* 8A558 800F10A8 AFB200A8 */ sw $s2, 0xa8($sp)
|
|
/* 8A55C 800F10AC F7B600D0 */ sdc1 $f22, 0xd0($sp)
|
|
/* 8A560 800F10B0 F7B400C8 */ sdc1 $f20, 0xc8($sp)
|
|
/* 8A564 800F10B4 8E030000 */ lw $v1, ($s0)
|
|
/* 8A568 800F10B8 3C0643A0 */ lui $a2, 0x43a0
|
|
/* 8A56C 800F10BC 3C074370 */ lui $a3, 0x4370
|
|
/* 8A570 800F10C0 44800000 */ mtc1 $zero, $f0
|
|
/* 8A574 800F10C4 3C0142C8 */ lui $at, 0x42c8
|
|
/* 8A578 800F10C8 44811000 */ mtc1 $at, $f2
|
|
/* 8A57C 800F10CC 3C013F80 */ lui $at, 0x3f80
|
|
/* 8A580 800F10D0 44812000 */ mtc1 $at, $f4
|
|
/* 8A584 800F10D4 0060402D */ daddu $t0, $v1, $zero
|
|
/* 8A588 800F10D8 44050000 */ mfc1 $a1, $f0
|
|
/* 8A58C 800F10DC 3C01C2C8 */ lui $at, 0xc2c8
|
|
/* 8A590 800F10E0 44810000 */ mtc1 $at, $f0
|
|
/* 8A594 800F10E4 24630008 */ addiu $v1, $v1, 8
|
|
/* 8A598 800F10E8 AE030000 */ sw $v1, ($s0)
|
|
/* 8A59C 800F10EC AD020000 */ sw $v0, ($t0)
|
|
/* 8A5A0 800F10F0 24620008 */ addiu $v0, $v1, 8
|
|
/* 8A5A4 800F10F4 AD000004 */ sw $zero, 4($t0)
|
|
/* 8A5A8 800F10F8 AE020000 */ sw $v0, ($s0)
|
|
/* 8A5AC 800F10FC 3C02DB06 */ lui $v0, 0xdb06
|
|
/* 8A5B0 800F1100 AC620000 */ sw $v0, ($v1)
|
|
/* 8A5B4 800F1104 24620010 */ addiu $v0, $v1, 0x10
|
|
/* 8A5B8 800F1108 AC600004 */ sw $zero, 4($v1)
|
|
/* 8A5BC 800F110C AE020000 */ sw $v0, ($s0)
|
|
/* 8A5C0 800F1110 3C02ED00 */ lui $v0, 0xed00
|
|
/* 8A5C4 800F1114 AC620008 */ sw $v0, 8($v1)
|
|
/* 8A5C8 800F1118 24620018 */ addiu $v0, $v1, 0x18
|
|
/* 8A5CC 800F111C AC69000C */ sw $t1, 0xc($v1)
|
|
/* 8A5D0 800F1120 AE020000 */ sw $v0, ($s0)
|
|
/* 8A5D4 800F1124 4485B000 */ mtc1 $a1, $f22
|
|
/* 8A5D8 800F1128 3C028011 */ lui $v0, %hi(D_801096B0)
|
|
/* 8A5DC 800F112C 244296B0 */ addiu $v0, $v0, %lo(D_801096B0)
|
|
/* 8A5E0 800F1130 AC6A0010 */ sw $t2, 0x10($v1)
|
|
/* 8A5E4 800F1134 AC620014 */ sw $v0, 0x14($v1)
|
|
/* 8A5E8 800F1138 E7A20018 */ swc1 $f2, 0x18($sp)
|
|
/* 8A5EC 800F113C E7A4001C */ swc1 $f4, 0x1c($sp)
|
|
/* 8A5F0 800F1140 AFA50010 */ sw $a1, 0x10($sp)
|
|
/* 8A5F4 800F1144 0C018E44 */ jal guOrthoF
|
|
/* 8A5F8 800F1148 E7A00014 */ swc1 $f0, 0x14($sp)
|
|
/* 8A5FC 800F114C 27A40020 */ addiu $a0, $sp, 0x20
|
|
/* 8A600 800F1150 96650000 */ lhu $a1, ($s3)
|
|
/* 8A604 800F1154 8FC20000 */ lw $v0, ($fp)
|
|
/* 8A608 800F1158 00052980 */ sll $a1, $a1, 6
|
|
/* 8A60C 800F115C 00B12821 */ addu $a1, $a1, $s1
|
|
/* 8A610 800F1160 0C019D40 */ jal guMtxF2L
|
|
/* 8A614 800F1164 00452821 */ addu $a1, $v0, $a1
|
|
/* 8A618 800F1168 3C03DA38 */ lui $v1, 0xda38
|
|
/* 8A61C 800F116C 34630007 */ ori $v1, $v1, 7
|
|
/* 8A620 800F1170 3C067F7F */ lui $a2, 0x7f7f
|
|
/* 8A624 800F1174 34C67F7F */ ori $a2, $a2, 0x7f7f
|
|
/* 8A628 800F1178 8E040000 */ lw $a0, ($s0)
|
|
/* 8A62C 800F117C 96620000 */ lhu $v0, ($s3)
|
|
/* 8A630 800F1180 0080282D */ daddu $a1, $a0, $zero
|
|
/* 8A634 800F1184 24840008 */ addiu $a0, $a0, 8
|
|
/* 8A638 800F1188 AE040000 */ sw $a0, ($s0)
|
|
/* 8A63C 800F118C ACA30000 */ sw $v1, ($a1)
|
|
/* 8A640 800F1190 24430001 */ addiu $v1, $v0, 1
|
|
/* 8A644 800F1194 3042FFFF */ andi $v0, $v0, 0xffff
|
|
/* 8A648 800F1198 00021180 */ sll $v0, $v0, 6
|
|
/* 8A64C 800F119C A6630000 */ sh $v1, ($s3)
|
|
/* 8A650 800F11A0 8FC30000 */ lw $v1, ($fp)
|
|
/* 8A654 800F11A4 00511021 */ addu $v0, $v0, $s1
|
|
/* 8A658 800F11A8 00621821 */ addu $v1, $v1, $v0
|
|
/* 8A65C 800F11AC 24820008 */ addiu $v0, $a0, 8
|
|
/* 8A660 800F11B0 ACA30004 */ sw $v1, 4($a1)
|
|
/* 8A664 800F11B4 AE020000 */ sw $v0, ($s0)
|
|
/* 8A668 800F11B8 3C02DE00 */ lui $v0, 0xde00
|
|
/* 8A66C 800F11BC AC820000 */ sw $v0, ($a0)
|
|
/* 8A670 800F11C0 3C028011 */ lui $v0, %hi(D_80109710)
|
|
/* 8A674 800F11C4 24429710 */ addiu $v0, $v0, %lo(D_80109710)
|
|
/* 8A678 800F11C8 AC820004 */ sw $v0, 4($a0)
|
|
/* 8A67C 800F11CC 24820010 */ addiu $v0, $a0, 0x10
|
|
/* 8A680 800F11D0 AE020000 */ sw $v0, ($s0)
|
|
/* 8A684 800F11D4 3C02FB00 */ lui $v0, 0xfb00
|
|
/* 8A688 800F11D8 AC820008 */ sw $v0, 8($a0)
|
|
/* 8A68C 800F11DC AC86000C */ sw $a2, 0xc($a0)
|
|
.L800F11E0:
|
|
/* 8A690 800F11E0 3C0B8011 */ lui $t3, %hi(D_8010D000)
|
|
/* 8A694 800F11E4 256BD000 */ addiu $t3, $t3, %lo(D_8010D000)
|
|
/* 8A698 800F11E8 028B1821 */ addu $v1, $s4, $t3
|
|
/* 8A69C 800F11EC 90620000 */ lbu $v0, ($v1)
|
|
/* 8A6A0 800F11F0 5040005C */ beql $v0, $zero, .L800F1364
|
|
/* 8A6A4 800F11F4 26F70001 */ addiu $s7, $s7, 1
|
|
/* 8A6A8 800F11F8 C4740018 */ lwc1 $f20, 0x18($v1)
|
|
/* 8A6AC 800F11FC 24120001 */ addiu $s2, $zero, 1
|
|
/* 8A6B0 800F1200 3C11800A */ lui $s1, %hi(gMasterGfxPos)
|
|
/* 8A6B4 800F1204 2631A66C */ addiu $s1, $s1, %lo(gMasterGfxPos)
|
|
/* 8A6B8 800F1208 24700022 */ addiu $s0, $v1, 0x22
|
|
.L800F120C:
|
|
/* 8A6BC 800F120C 82020001 */ lb $v0, 1($s0)
|
|
/* 8A6C0 800F1210 0440004F */ bltz $v0, .L800F1350
|
|
/* 8A6C4 800F1214 02C0202D */ daddu $a0, $s6, $zero
|
|
/* 8A6C8 800F1218 C6000012 */ lwc1 $f0, 0x12($s0)
|
|
/* 8A6CC 800F121C 4405B000 */ mfc1 $a1, $f22
|
|
/* 8A6D0 800F1220 3C028007 */ lui $v0, %hi(gGameStatusPtr)
|
|
/* 8A6D4 800F1224 8C42419C */ lw $v0, %lo(gGameStatusPtr)($v0)
|
|
/* 8A6D8 800F1228 4406B000 */ mfc1 $a2, $f22
|
|
/* 8A6DC 800F122C 94430134 */ lhu $v1, 0x134($v0)
|
|
/* 8A6E0 800F1230 46140002 */ mul.s $f0, $f0, $f20
|
|
/* 8A6E4 800F1234 00000000 */ nop
|
|
/* 8A6E8 800F1238 00031080 */ sll $v0, $v1, 2
|
|
/* 8A6EC 800F123C 00431021 */ addu $v0, $v0, $v1
|
|
/* 8A6F0 800F1240 00021040 */ sll $v0, $v0, 1
|
|
/* 8A6F4 800F1244 44823000 */ mtc1 $v0, $f6
|
|
/* 8A6F8 800F1248 00000000 */ nop
|
|
/* 8A6FC 800F124C 468031A0 */ cvt.s.w $f6, $f6
|
|
/* 8A700 800F1250 44073000 */ mfc1 $a3, $f6
|
|
/* 8A704 800F1254 E7A00010 */ swc1 $f0, 0x10($sp)
|
|
/* 8A708 800F1258 C6000002 */ lwc1 $f0, 2($s0)
|
|
/* 8A70C 800F125C E7A00014 */ swc1 $f0, 0x14($sp)
|
|
/* 8A710 800F1260 C6000006 */ lwc1 $f0, 6($s0)
|
|
/* 8A714 800F1264 E7B6001C */ swc1 $f22, 0x1c($sp)
|
|
/* 8A718 800F1268 0C018FC4 */ jal guPositionF
|
|
/* 8A71C 800F126C E7A00018 */ swc1 $f0, 0x18($sp)
|
|
/* 8A720 800F1270 02C0202D */ daddu $a0, $s6, $zero
|
|
/* 8A724 800F1274 96650000 */ lhu $a1, ($s3)
|
|
/* 8A728 800F1278 8FC20000 */ lw $v0, ($fp)
|
|
/* 8A72C 800F127C 00052980 */ sll $a1, $a1, 6
|
|
/* 8A730 800F1280 00B52821 */ addu $a1, $a1, $s5
|
|
/* 8A734 800F1284 0C019D40 */ jal guMtxF2L
|
|
/* 8A738 800F1288 00452821 */ addu $a1, $v0, $a1
|
|
/* 8A73C 800F128C 3C08D838 */ lui $t0, 0xd838
|
|
/* 8A740 800F1290 8E240000 */ lw $a0, ($s1)
|
|
/* 8A744 800F1294 35080002 */ ori $t0, $t0, 2
|
|
/* 8A748 800F1298 0080282D */ daddu $a1, $a0, $zero
|
|
/* 8A74C 800F129C 24840008 */ addiu $a0, $a0, 8
|
|
/* 8A750 800F12A0 AE240000 */ sw $a0, ($s1)
|
|
/* 8A754 800F12A4 96620000 */ lhu $v0, ($s3)
|
|
/* 8A758 800F12A8 3C03DA38 */ lui $v1, 0xda38
|
|
/* 8A75C 800F12AC ACA30000 */ sw $v1, ($a1)
|
|
/* 8A760 800F12B0 24430001 */ addiu $v1, $v0, 1
|
|
/* 8A764 800F12B4 3042FFFF */ andi $v0, $v0, 0xffff
|
|
/* 8A768 800F12B8 00021180 */ sll $v0, $v0, 6
|
|
/* 8A76C 800F12BC A6630000 */ sh $v1, ($s3)
|
|
/* 8A770 800F12C0 8FC30000 */ lw $v1, ($fp)
|
|
/* 8A774 800F12C4 00551021 */ addu $v0, $v0, $s5
|
|
/* 8A778 800F12C8 00621821 */ addu $v1, $v1, $v0
|
|
/* 8A77C 800F12CC 24820008 */ addiu $v0, $a0, 8
|
|
/* 8A780 800F12D0 ACA30004 */ sw $v1, 4($a1)
|
|
/* 8A784 800F12D4 AE220000 */ sw $v0, ($s1)
|
|
/* 8A788 800F12D8 82030001 */ lb $v1, 1($s0)
|
|
/* 8A78C 800F12DC 24020050 */ addiu $v0, $zero, 0x50
|
|
/* 8A790 800F12E0 00431023 */ subu $v0, $v0, $v1
|
|
/* 8A794 800F12E4 304200FF */ andi $v0, $v0, 0xff
|
|
/* 8A798 800F12E8 3C03FA00 */ lui $v1, 0xfa00
|
|
/* 8A79C 800F12EC 00431025 */ or $v0, $v0, $v1
|
|
/* 8A7A0 800F12F0 AC820000 */ sw $v0, ($a0)
|
|
/* 8A7A4 800F12F4 9203FFFD */ lbu $v1, -3($s0)
|
|
/* 8A7A8 800F12F8 9205FFFE */ lbu $a1, -2($s0)
|
|
/* 8A7AC 800F12FC 9206FFFF */ lbu $a2, -1($s0)
|
|
/* 8A7B0 800F1300 92070000 */ lbu $a3, ($s0)
|
|
/* 8A7B4 800F1304 24820010 */ addiu $v0, $a0, 0x10
|
|
/* 8A7B8 800F1308 AE220000 */ sw $v0, ($s1)
|
|
/* 8A7BC 800F130C 3C02DE00 */ lui $v0, 0xde00
|
|
/* 8A7C0 800F1310 AC820008 */ sw $v0, 8($a0)
|
|
/* 8A7C4 800F1314 3C028011 */ lui $v0, %hi(D_801097D8)
|
|
/* 8A7C8 800F1318 244297D8 */ addiu $v0, $v0, %lo(D_801097D8)
|
|
/* 8A7CC 800F131C AC82000C */ sw $v0, 0xc($a0)
|
|
/* 8A7D0 800F1320 24820018 */ addiu $v0, $a0, 0x18
|
|
/* 8A7D4 800F1324 AE220000 */ sw $v0, ($s1)
|
|
/* 8A7D8 800F1328 24020040 */ addiu $v0, $zero, 0x40
|
|
/* 8A7DC 800F132C AC880010 */ sw $t0, 0x10($a0)
|
|
/* 8A7E0 800F1330 AC820014 */ sw $v0, 0x14($a0)
|
|
/* 8A7E4 800F1334 00031E00 */ sll $v1, $v1, 0x18
|
|
/* 8A7E8 800F1338 00052C00 */ sll $a1, $a1, 0x10
|
|
/* 8A7EC 800F133C 00651825 */ or $v1, $v1, $a1
|
|
/* 8A7F0 800F1340 00063200 */ sll $a2, $a2, 8
|
|
/* 8A7F4 800F1344 00661825 */ or $v1, $v1, $a2
|
|
/* 8A7F8 800F1348 00671825 */ or $v1, $v1, $a3
|
|
/* 8A7FC 800F134C AC830004 */ sw $v1, 4($a0)
|
|
.L800F1350:
|
|
/* 8A800 800F1350 26520001 */ addiu $s2, $s2, 1
|
|
/* 8A804 800F1354 2A420039 */ slti $v0, $s2, 0x39
|
|
/* 8A808 800F1358 1440FFAC */ bnez $v0, .L800F120C
|
|
/* 8A80C 800F135C 2610001C */ addiu $s0, $s0, 0x1c
|
|
/* 8A810 800F1360 26F70001 */ addiu $s7, $s7, 1
|
|
.L800F1364:
|
|
/* 8A814 800F1364 1AE0FF9E */ blez $s7, .L800F11E0
|
|
/* 8A818 800F1368 2694063C */ addiu $s4, $s4, 0x63c
|
|
/* 8A81C 800F136C 8FBF00C4 */ lw $ra, 0xc4($sp)
|
|
/* 8A820 800F1370 8FBE00C0 */ lw $fp, 0xc0($sp)
|
|
/* 8A824 800F1374 8FB700BC */ lw $s7, 0xbc($sp)
|
|
/* 8A828 800F1378 8FB600B8 */ lw $s6, 0xb8($sp)
|
|
/* 8A82C 800F137C 8FB500B4 */ lw $s5, 0xb4($sp)
|
|
/* 8A830 800F1380 8FB400B0 */ lw $s4, 0xb0($sp)
|
|
/* 8A834 800F1384 8FB300AC */ lw $s3, 0xac($sp)
|
|
/* 8A838 800F1388 8FB200A8 */ lw $s2, 0xa8($sp)
|
|
/* 8A83C 800F138C 8FB100A4 */ lw $s1, 0xa4($sp)
|
|
/* 8A840 800F1390 8FB000A0 */ lw $s0, 0xa0($sp)
|
|
/* 8A844 800F1394 D7B600D0 */ ldc1 $f22, 0xd0($sp)
|
|
/* 8A848 800F1398 D7B400C8 */ ldc1 $f20, 0xc8($sp)
|
|
/* 8A84C 800F139C 03E00008 */ jr $ra
|
|
/* 8A850 800F13A0 27BD00D8 */ addiu $sp, $sp, 0xd8
|
|
/* 8A854 800F13A4 00000000 */ nop
|
|
/* 8A858 800F13A8 00000000 */ nop
|
|
/* 8A85C 800F13AC 00000000 */ nop
|