mirror of
https://github.com/pmret/papermario.git
synced 2024-11-15 07:22:29 +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>
80 lines
3.8 KiB
ArmAsm
80 lines
3.8 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel npc_free
|
|
/* 13DCC 800389CC 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* 13DD0 800389D0 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 13DD4 800389D4 0080882D */ daddu $s1, $a0, $zero
|
|
/* 13DD8 800389D8 AFBF0018 */ sw $ra, 0x18($sp)
|
|
/* 13DDC 800389DC AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 13DE0 800389E0 8E240020 */ lw $a0, 0x20($s1)
|
|
/* 13DE4 800389E4 10800004 */ beqz $a0, .L800389F8
|
|
/* 13DE8 800389E8 00000000 */ nop
|
|
/* 13DEC 800389EC 0C00AB4B */ jal heap_free
|
|
/* 13DF0 800389F0 00000000 */ nop
|
|
/* 13DF4 800389F4 AE200020 */ sw $zero, 0x20($s1)
|
|
.L800389F8:
|
|
/* 13DF8 800389F8 8E230000 */ lw $v1, ($s1)
|
|
/* 13DFC 800389FC 3C024000 */ lui $v0, 0x4000
|
|
/* 13E00 80038A00 00621024 */ and $v0, $v1, $v0
|
|
/* 13E04 80038A04 1440000A */ bnez $v0, .L80038A30
|
|
/* 13E08 80038A08 3C020100 */ lui $v0, 0x100
|
|
/* 13E0C 80038A0C 00621024 */ and $v0, $v1, $v0
|
|
/* 13E10 80038A10 14400007 */ bnez $v0, .L80038A30
|
|
/* 13E14 80038A14 00000000 */ nop
|
|
/* 13E18 80038A18 0C0B797A */ jal func_802DE5E8
|
|
/* 13E1C 80038A1C 8E240024 */ lw $a0, 0x24($s1)
|
|
/* 13E20 80038A20 10400003 */ beqz $v0, .L80038A30
|
|
/* 13E24 80038A24 00000000 */ nop
|
|
.L80038A28:
|
|
/* 13E28 80038A28 0800E28A */ j .L80038A28
|
|
/* 13E2C 80038A2C 00000000 */ nop
|
|
.L80038A30:
|
|
/* 13E30 80038A30 8E240078 */ lw $a0, 0x78($s1)
|
|
/* 13E34 80038A34 0C0448CA */ jal func_80112328
|
|
/* 13E38 80038A38 0000802D */ daddu $s0, $zero, $zero
|
|
/* 13E3C 80038A3C 0220202D */ daddu $a0, $s1, $zero
|
|
.L80038A40:
|
|
/* 13E40 80038A40 0C00F10A */ jal func_8003C428
|
|
/* 13E44 80038A44 0200282D */ daddu $a1, $s0, $zero
|
|
/* 13E48 80038A48 26100001 */ addiu $s0, $s0, 1
|
|
/* 13E4C 80038A4C 2A020002 */ slti $v0, $s0, 2
|
|
/* 13E50 80038A50 1440FFFB */ bnez $v0, .L80038A40
|
|
/* 13E54 80038A54 0220202D */ daddu $a0, $s1, $zero
|
|
/* 13E58 80038A58 8E220000 */ lw $v0, ($s1)
|
|
/* 13E5C 80038A5C 3C030010 */ lui $v1, 0x10
|
|
/* 13E60 80038A60 00431024 */ and $v0, $v0, $v1
|
|
/* 13E64 80038A64 10400003 */ beqz $v0, .L80038A74
|
|
/* 13E68 80038A68 00000000 */ nop
|
|
/* 13E6C 80038A6C 0C00EB6B */ jal disable_npc_blur
|
|
/* 13E70 80038A70 0220202D */ daddu $a0, $s1, $zero
|
|
.L80038A74:
|
|
/* 13E74 80038A74 0C00AB4B */ jal heap_free
|
|
/* 13E78 80038A78 0220202D */ daddu $a0, $s1, $zero
|
|
/* 13E7C 80038A7C 3C05800A */ lui $a1, %hi(gCurrentNpcListPtr)
|
|
/* 13E80 80038A80 8CA50B90 */ lw $a1, %lo(gCurrentNpcListPtr)($a1)
|
|
/* 13E84 80038A84 0000802D */ daddu $s0, $zero, $zero
|
|
/* 13E88 80038A88 00A0182D */ daddu $v1, $a1, $zero
|
|
.L80038A8C:
|
|
/* 13E8C 80038A8C 8C620000 */ lw $v0, ($v1)
|
|
/* 13E90 80038A90 10510006 */ beq $v0, $s1, .L80038AAC
|
|
/* 13E94 80038A94 00101080 */ sll $v0, $s0, 2
|
|
/* 13E98 80038A98 26100001 */ addiu $s0, $s0, 1
|
|
/* 13E9C 80038A9C 2A020040 */ slti $v0, $s0, 0x40
|
|
/* 13EA0 80038AA0 1440FFFA */ bnez $v0, .L80038A8C
|
|
/* 13EA4 80038AA4 24630004 */ addiu $v1, $v1, 4
|
|
/* 13EA8 80038AA8 00101080 */ sll $v0, $s0, 2
|
|
.L80038AAC:
|
|
/* 13EAC 80038AAC 3C04800A */ lui $a0, %hi(D_8009A604)
|
|
/* 13EB0 80038AB0 2484A604 */ addiu $a0, $a0, %lo(D_8009A604)
|
|
/* 13EB4 80038AB4 94830000 */ lhu $v1, ($a0)
|
|
/* 13EB8 80038AB8 00451021 */ addu $v0, $v0, $a1
|
|
/* 13EBC 80038ABC AC400000 */ sw $zero, ($v0)
|
|
/* 13EC0 80038AC0 2463FFFF */ addiu $v1, $v1, -1
|
|
/* 13EC4 80038AC4 A4830000 */ sh $v1, ($a0)
|
|
/* 13EC8 80038AC8 8FBF0018 */ lw $ra, 0x18($sp)
|
|
/* 13ECC 80038ACC 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 13ED0 80038AD0 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 13ED4 80038AD4 03E00008 */ jr $ra
|
|
/* 13ED8 80038AD8 27BD0020 */ addiu $sp, $sp, 0x20
|