mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +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>
108 lines
5.5 KiB
ArmAsm
108 lines
5.5 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_8005739C
|
|
/* 3279C 8005739C 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
/* 327A0 800573A0 AFB3001C */ sw $s3, 0x1c($sp)
|
|
/* 327A4 800573A4 00C0982D */ daddu $s3, $a2, $zero
|
|
/* 327A8 800573A8 AFB20018 */ sw $s2, 0x18($sp)
|
|
/* 327AC 800573AC 00A0902D */ daddu $s2, $a1, $zero
|
|
/* 327B0 800573B0 308400FF */ andi $a0, $a0, 0xff
|
|
/* 327B4 800573B4 00041140 */ sll $v0, $a0, 5
|
|
/* 327B8 800573B8 3C038008 */ lui $v1, %hi(D_80078E24)
|
|
/* 327BC 800573BC 8C638E24 */ lw $v1, %lo(D_80078E24)($v1)
|
|
/* 327C0 800573C0 00441023 */ subu $v0, $v0, $a0
|
|
/* 327C4 800573C4 AFBF0020 */ sw $ra, 0x20($sp)
|
|
/* 327C8 800573C8 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 327CC 800573CC AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 327D0 800573D0 8C63001C */ lw $v1, 0x1c($v1)
|
|
/* 327D4 800573D4 00021080 */ sll $v0, $v0, 2
|
|
/* 327D8 800573D8 00628021 */ addu $s0, $v1, $v0
|
|
/* 327DC 800573DC 8E050064 */ lw $a1, 0x64($s0)
|
|
/* 327E0 800573E0 8E030068 */ lw $v1, 0x68($s0)
|
|
/* 327E4 800573E4 00A3102A */ slt $v0, $a1, $v1
|
|
/* 327E8 800573E8 14400029 */ bnez $v0, .L80057490
|
|
/* 327EC 800573EC 26110048 */ addiu $s1, $s0, 0x48
|
|
/* 327F0 800573F0 3C028008 */ lui $v0, %hi(D_80078151)
|
|
/* 327F4 800573F4 24428151 */ addiu $v0, $v0, %lo(D_80078151)
|
|
/* 327F8 800573F8 90420000 */ lbu $v0, ($v0)
|
|
/* 327FC 800573FC 1440000E */ bnez $v0, .L80057438
|
|
/* 32800 80057400 AE030064 */ sw $v1, 0x64($s0)
|
|
/* 32804 80057404 3C048008 */ lui $a0, %hi(D_80078E30)
|
|
/* 32808 80057408 24848E30 */ addiu $a0, $a0, %lo(D_80078E30)
|
|
/* 3280C 8005740C 8603004E */ lh $v1, 0x4e($s0)
|
|
/* 32810 80057410 84820080 */ lh $v0, 0x80($a0)
|
|
/* 32814 80057414 00620018 */ mult $v1, $v0
|
|
/* 32818 80057418 00004012 */ mflo $t0
|
|
/* 3281C 8005741C 000813C3 */ sra $v0, $t0, 0xf
|
|
/* 32820 80057420 A6020050 */ sh $v0, 0x50($s0)
|
|
/* 32824 80057424 84820080 */ lh $v0, 0x80($a0)
|
|
/* 32828 80057428 00620018 */ mult $v1, $v0
|
|
/* 3282C 8005742C 00004012 */ mflo $t0
|
|
/* 32830 80057430 08015D2E */ j .L800574B8
|
|
/* 32834 80057434 000813C3 */ sra $v0, $t0, 0xf
|
|
.L80057438:
|
|
/* 32838 80057438 8602004C */ lh $v0, 0x4c($s0)
|
|
/* 3283C 8005743C 8603004E */ lh $v1, 0x4e($s0)
|
|
/* 32840 80057440 00021040 */ sll $v0, $v0, 1
|
|
/* 32844 80057444 3C018008 */ lui $at, %hi(D_80078E30)
|
|
/* 32848 80057448 00220821 */ addu $at, $at, $v0
|
|
/* 3284C 8005744C 84228E30 */ lh $v0, %lo(D_80078E30)($at)
|
|
/* 32850 80057450 00620018 */ mult $v1, $v0
|
|
/* 32854 80057454 8603004C */ lh $v1, 0x4c($s0)
|
|
/* 32858 80057458 00004012 */ mflo $t0
|
|
/* 3285C 8005745C 000813C3 */ sra $v0, $t0, 0xf
|
|
/* 32860 80057460 A6020050 */ sh $v0, 0x50($s0)
|
|
/* 32864 80057464 2402007F */ addiu $v0, $zero, 0x7f
|
|
/* 32868 80057468 00431023 */ subu $v0, $v0, $v1
|
|
/* 3286C 8005746C 00021040 */ sll $v0, $v0, 1
|
|
/* 32870 80057470 8603004E */ lh $v1, 0x4e($s0)
|
|
/* 32874 80057474 3C018008 */ lui $at, %hi(D_80078E30)
|
|
/* 32878 80057478 00220821 */ addu $at, $at, $v0
|
|
/* 3287C 8005747C 84228E30 */ lh $v0, %lo(D_80078E30)($at)
|
|
/* 32880 80057480 00620018 */ mult $v1, $v0
|
|
/* 32884 80057484 00004012 */ mflo $t0
|
|
/* 32888 80057488 08015D2E */ j .L800574B8
|
|
/* 3288C 8005748C 000813C3 */ sra $v0, $t0, 0xf
|
|
.L80057490:
|
|
/* 32890 80057490 86040050 */ lh $a0, 0x50($s0)
|
|
/* 32894 80057494 8606005A */ lh $a2, 0x5a($s0)
|
|
/* 32898 80057498 0C015F2D */ jal func_80057CB4
|
|
/* 3289C 8005749C 96070058 */ lhu $a3, 0x58($s0)
|
|
/* 328A0 800574A0 86040052 */ lh $a0, 0x52($s0)
|
|
/* 328A4 800574A4 8E050064 */ lw $a1, 0x64($s0)
|
|
/* 328A8 800574A8 86060060 */ lh $a2, 0x60($s0)
|
|
/* 328AC 800574AC 9607005E */ lhu $a3, 0x5e($s0)
|
|
/* 328B0 800574B0 0C015F2D */ jal func_80057CB4
|
|
/* 328B4 800574B4 A6020050 */ sh $v0, 0x50($s0)
|
|
.L800574B8:
|
|
/* 328B8 800574B8 A6020052 */ sh $v0, 0x52($s0)
|
|
/* 328BC 800574BC 86220008 */ lh $v0, 8($s1)
|
|
/* 328C0 800574C0 14400002 */ bnez $v0, .L800574CC
|
|
/* 328C4 800574C4 24020001 */ addiu $v0, $zero, 1
|
|
/* 328C8 800574C8 A6220008 */ sh $v0, 8($s1)
|
|
.L800574CC:
|
|
/* 328CC 800574CC 8622000A */ lh $v0, 0xa($s1)
|
|
/* 328D0 800574D0 14400004 */ bnez $v0, .L800574E4
|
|
/* 328D4 800574D4 00121400 */ sll $v0, $s2, 0x10
|
|
/* 328D8 800574D8 24020001 */ addiu $v0, $zero, 1
|
|
/* 328DC 800574DC A622000A */ sh $v0, 0xa($s1)
|
|
/* 328E0 800574E0 00121400 */ sll $v0, $s2, 0x10
|
|
.L800574E4:
|
|
/* 328E4 800574E4 00021403 */ sra $v0, $v0, 0x10
|
|
/* 328E8 800574E8 00420018 */ mult $v0, $v0
|
|
/* 328EC 800574EC 24020001 */ addiu $v0, $zero, 1
|
|
/* 328F0 800574F0 AE20001C */ sw $zero, 0x1c($s1)
|
|
/* 328F4 800574F4 AE330020 */ sw $s3, 0x20($s1)
|
|
/* 328F8 800574F8 AE220024 */ sw $v0, 0x24($s1)
|
|
/* 328FC 800574FC 00004012 */ mflo $t0
|
|
/* 32900 80057500 000813C3 */ sra $v0, $t0, 0xf
|
|
/* 32904 80057504 A6220006 */ sh $v0, 6($s1)
|
|
/* 32908 80057508 8FBF0020 */ lw $ra, 0x20($sp)
|
|
/* 3290C 8005750C 8FB3001C */ lw $s3, 0x1c($sp)
|
|
/* 32910 80057510 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* 32914 80057514 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 32918 80057518 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 3291C 8005751C 03E00008 */ jr $ra
|
|
/* 32920 80057520 27BD0028 */ addiu $sp, $sp, 0x28
|