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>
75 lines
3.5 KiB
ArmAsm
75 lines
3.5 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_8002FFDC
|
|
/* B3DC 8002FFDC 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
/* B3E0 8002FFE0 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* B3E4 8002FFE4 0080802D */ daddu $s0, $a0, $zero
|
|
/* B3E8 8002FFE8 3C028011 */ lui $v0, %hi(D_8010F188)
|
|
/* B3EC 8002FFEC 2442F188 */ addiu $v0, $v0, %lo(D_8010F188)
|
|
/* B3F0 8002FFF0 AFBF0018 */ sw $ra, 0x18($sp)
|
|
/* B3F4 8002FFF4 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* B3F8 8002FFF8 F7B40020 */ sdc1 $f20, 0x20($sp)
|
|
/* B3FC 8002FFFC C44C0084 */ lwc1 $f12, 0x84($v0)
|
|
/* B400 80030000 3C0142B4 */ lui $at, 0x42b4
|
|
/* B404 80030004 44817000 */ mtc1 $at, $f14
|
|
/* B408 80030008 0C00A6FA */ jal func_80029BE8
|
|
/* B40C 8003000C 0040882D */ daddu $s1, $v0, $zero
|
|
/* B410 80030010 3C014234 */ lui $at, 0x4234
|
|
/* B414 80030014 4481A000 */ mtc1 $at, $f20
|
|
/* B418 80030018 46000005 */ abs.s $f0, $f0
|
|
/* B41C 8003001C 4614003C */ c.lt.s $f0, $f20
|
|
/* B420 80030020 00000000 */ nop
|
|
/* B424 80030024 4500000F */ bc1f .L80030064
|
|
/* B428 80030028 00000000 */ nop
|
|
/* B42C 8003002C 86020556 */ lh $v0, 0x556($s0)
|
|
/* B430 80030030 14400009 */ bnez $v0, .L80030058
|
|
/* B434 80030034 2402000F */ addiu $v0, $zero, 0xf
|
|
/* B438 80030038 86020554 */ lh $v0, 0x554($s0)
|
|
/* B43C 8003003C 96030554 */ lhu $v1, 0x554($s0)
|
|
/* B440 80030040 1C40001D */ bgtz $v0, .L800300B8
|
|
/* B444 80030044 2462FFFF */ addiu $v0, $v1, -1
|
|
/* B448 80030048 3C01420C */ lui $at, 0x420c
|
|
/* B44C 8003004C 44810000 */ mtc1 $at, $f0
|
|
/* B450 80030050 0800C032 */ j .L800300C8
|
|
/* B454 80030054 E6000550 */ swc1 $f0, 0x550($s0)
|
|
.L80030058:
|
|
/* B458 80030058 A6020554 */ sh $v0, 0x554($s0)
|
|
/* B45C 8003005C 0800C032 */ j .L800300C8
|
|
/* B460 80030060 A6000556 */ sh $zero, 0x556($s0)
|
|
.L80030064:
|
|
/* B464 80030064 C62C0084 */ lwc1 $f12, 0x84($s1)
|
|
/* B468 80030068 3C014387 */ lui $at, 0x4387
|
|
/* B46C 8003006C 44817000 */ mtc1 $at, $f14
|
|
/* B470 80030070 0C00A6FA */ jal func_80029BE8
|
|
/* B474 80030074 00000000 */ nop
|
|
/* B478 80030078 46000005 */ abs.s $f0, $f0
|
|
/* B47C 8003007C 4614003C */ c.lt.s $f0, $f20
|
|
/* B480 80030080 00000000 */ nop
|
|
/* B484 80030084 45000010 */ bc1f .L800300C8
|
|
/* B488 80030088 24030001 */ addiu $v1, $zero, 1
|
|
/* B48C 8003008C 86020556 */ lh $v0, 0x556($s0)
|
|
/* B490 80030090 1443000B */ bne $v0, $v1, .L800300C0
|
|
/* B494 80030094 2402000F */ addiu $v0, $zero, 0xf
|
|
/* B498 80030098 86020554 */ lh $v0, 0x554($s0)
|
|
/* B49C 8003009C 96030554 */ lhu $v1, 0x554($s0)
|
|
/* B4A0 800300A0 1C400005 */ bgtz $v0, .L800300B8
|
|
/* B4A4 800300A4 2462FFFF */ addiu $v0, $v1, -1
|
|
/* B4A8 800300A8 3C01C20C */ lui $at, 0xc20c
|
|
/* B4AC 800300AC 44810000 */ mtc1 $at, $f0
|
|
/* B4B0 800300B0 0800C032 */ j .L800300C8
|
|
/* B4B4 800300B4 E6000550 */ swc1 $f0, 0x550($s0)
|
|
.L800300B8:
|
|
/* B4B8 800300B8 0800C032 */ j .L800300C8
|
|
/* B4BC 800300BC A6020554 */ sh $v0, 0x554($s0)
|
|
.L800300C0:
|
|
/* B4C0 800300C0 A6020554 */ sh $v0, 0x554($s0)
|
|
/* B4C4 800300C4 A6030556 */ sh $v1, 0x556($s0)
|
|
.L800300C8:
|
|
/* B4C8 800300C8 8FBF0018 */ lw $ra, 0x18($sp)
|
|
/* B4CC 800300CC 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* B4D0 800300D0 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* B4D4 800300D4 D7B40020 */ ldc1 $f20, 0x20($sp)
|
|
/* B4D8 800300D8 03E00008 */ jr $ra
|
|
/* B4DC 800300DC 27BD0028 */ addiu $sp, $sp, 0x28
|