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>
82 lines
4.0 KiB
ArmAsm
82 lines
4.0 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_8003D320
|
|
/* 18720 8003D320 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* 18724 8003D324 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 18728 8003D328 0080802D */ daddu $s0, $a0, $zero
|
|
/* 1872C 8003D32C AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 18730 8003D330 3C020040 */ lui $v0, 0x40
|
|
/* 18734 8003D334 34420002 */ ori $v0, $v0, 2
|
|
/* 18738 8003D338 AFBF001C */ sw $ra, 0x1c($sp)
|
|
/* 1873C 8003D33C AFB20018 */ sw $s2, 0x18($sp)
|
|
/* 18740 8003D340 8E030000 */ lw $v1, ($s0)
|
|
/* 18744 8003D344 3C128011 */ lui $s2, %hi(D_8010ED70)
|
|
/* 18748 8003D348 2652ED70 */ addiu $s2, $s2, %lo(D_8010ED70)
|
|
/* 1874C 8003D34C 00621824 */ and $v1, $v1, $v0
|
|
/* 18750 8003D350 3C020040 */ lui $v0, 0x40
|
|
/* 18754 8003D354 14620036 */ bne $v1, $v0, .L8003D430
|
|
/* 18758 8003D358 00A0882D */ daddu $s1, $a1, $zero
|
|
/* 1875C 8003D35C C6020018 */ lwc1 $f2, 0x18($s0)
|
|
/* 18760 8003D360 44800000 */ mtc1 $zero, $f0
|
|
/* 18764 8003D364 00000000 */ nop
|
|
/* 18768 8003D368 46001032 */ c.eq.s $f2, $f0
|
|
/* 1876C 8003D36C 00000000 */ nop
|
|
/* 18770 8003D370 4501002F */ bc1t .L8003D430
|
|
/* 18774 8003D374 00000000 */ nop
|
|
/* 18778 8003D378 0C016E96 */ jal func_8005BA58
|
|
/* 1877C 8003D37C 96040084 */ lhu $a0, 0x84($s0)
|
|
/* 18780 8003D380 304200FF */ andi $v0, $v0, 0xff
|
|
/* 18784 8003D384 2443FFFF */ addiu $v1, $v0, -1
|
|
/* 18788 8003D388 2C620009 */ sltiu $v0, $v1, 9
|
|
/* 1878C 8003D38C 10400025 */ beqz $v0, .L8003D424
|
|
/* 18790 8003D390 00031080 */ sll $v0, $v1, 2
|
|
/* 18794 8003D394 3C01800A */ lui $at, %hi(D_80098570)
|
|
/* 18798 8003D398 00220821 */ addu $at, $at, $v0
|
|
/* 1879C 8003D39C 8C228570 */ lw $v0, %lo(D_80098570)($at)
|
|
/* 187A0 8003D3A0 00400008 */ jr $v0
|
|
/* 187A4 8003D3A4 00000000 */ nop
|
|
/* 187A8 8003D3A8 0200202D */ daddu $a0, $s0, $zero
|
|
/* 187AC 8003D3AC 0C00F5BE */ jal func_8003D6F8
|
|
/* 187B0 8003D3B0 0220282D */ daddu $a1, $s1, $zero
|
|
/* 187B4 8003D3B4 0800F50C */ j .L8003D430
|
|
/* 187B8 8003D3B8 00000000 */ nop
|
|
/* 187BC 8003D3BC 0200202D */ daddu $a0, $s0, $zero
|
|
/* 187C0 8003D3C0 0C00F63E */ jal func_8003D8F8
|
|
/* 187C4 8003D3C4 0220282D */ daddu $a1, $s1, $zero
|
|
/* 187C8 8003D3C8 0800F50C */ j .L8003D430
|
|
/* 187CC 8003D3CC 00000000 */ nop
|
|
/* 187D0 8003D3D0 82420000 */ lb $v0, ($s2)
|
|
/* 187D4 8003D3D4 10400004 */ beqz $v0, .L8003D3E8
|
|
/* 187D8 8003D3D8 24020008 */ addiu $v0, $zero, 8
|
|
/* 187DC 8003D3DC 82430003 */ lb $v1, 3($s2)
|
|
/* 187E0 8003D3E0 10620013 */ beq $v1, $v0, .L8003D430
|
|
/* 187E4 8003D3E4 00000000 */ nop
|
|
.L8003D3E8:
|
|
/* 187E8 8003D3E8 0200202D */ daddu $a0, $s0, $zero
|
|
/* 187EC 8003D3EC 0C00F718 */ jal func_8003DC60
|
|
/* 187F0 8003D3F0 0220282D */ daddu $a1, $s1, $zero
|
|
/* 187F4 8003D3F4 0800F50C */ j .L8003D430
|
|
/* 187F8 8003D3F8 00000000 */ nop
|
|
/* 187FC 8003D3FC 0200202D */ daddu $a0, $s0, $zero
|
|
/* 18800 8003D400 0C00F765 */ jal func_8003DD94
|
|
/* 18804 8003D404 0220282D */ daddu $a1, $s1, $zero
|
|
/* 18808 8003D408 0800F50C */ j .L8003D430
|
|
/* 1880C 8003D40C 00000000 */ nop
|
|
/* 18810 8003D410 0200202D */ daddu $a0, $s0, $zero
|
|
/* 18814 8003D414 0C00F7A4 */ jal func_8003DE90
|
|
/* 18818 8003D418 0220282D */ daddu $a1, $s1, $zero
|
|
/* 1881C 8003D41C 0800F50C */ j .L8003D430
|
|
/* 18820 8003D420 00000000 */ nop
|
|
.L8003D424:
|
|
/* 18824 8003D424 0200202D */ daddu $a0, $s0, $zero
|
|
/* 18828 8003D428 0C00F512 */ jal func_8003D448
|
|
/* 1882C 8003D42C 0220282D */ daddu $a1, $s1, $zero
|
|
.L8003D430:
|
|
/* 18830 8003D430 8FBF001C */ lw $ra, 0x1c($sp)
|
|
/* 18834 8003D434 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* 18838 8003D438 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 1883C 8003D43C 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 18840 8003D440 03E00008 */ jr $ra
|
|
/* 18844 8003D444 27BD0020 */ addiu $sp, $sp, 0x20
|