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>
43 lines
2.0 KiB
ArmAsm
43 lines
2.0 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_8024F7C8
|
|
/* 17E0A8 8024F7C8 0000382D */ daddu $a3, $zero, $zero
|
|
/* 17E0AC 8024F7CC 24090001 */ addiu $t1, $zero, 1
|
|
/* 17E0B0 8024F7D0 24080014 */ addiu $t0, $zero, 0x14
|
|
/* 17E0B4 8024F7D4 3C06802A */ lui $a2, %hi(D_8029F2C0)
|
|
/* 17E0B8 8024F7D8 24C6F2C0 */ addiu $a2, $a2, %lo(D_8029F2C0)
|
|
.L8024F7DC:
|
|
/* 17E0BC 8024F7DC 84C20010 */ lh $v0, 0x10($a2)
|
|
/* 17E0C0 8024F7E0 94C30010 */ lhu $v1, 0x10($a2)
|
|
/* 17E0C4 8024F7E4 10400013 */ beqz $v0, .L8024F834
|
|
/* 17E0C8 8024F7E8 30620010 */ andi $v0, $v1, 0x10
|
|
/* 17E0CC 8024F7EC 50400012 */ beql $v0, $zero, .L8024F838
|
|
/* 17E0D0 8024F7F0 24E70001 */ addiu $a3, $a3, 1
|
|
/* 17E0D4 8024F7F4 84C20012 */ lh $v0, 0x12($a2)
|
|
/* 17E0D8 8024F7F8 8CC40018 */ lw $a0, 0x18($a2)
|
|
/* 17E0DC 8024F7FC 1840000D */ blez $v0, .L8024F834
|
|
/* 17E0E0 8024F800 0000282D */ daddu $a1, $zero, $zero
|
|
/* 17E0E4 8024F804 24830044 */ addiu $v1, $a0, 0x44
|
|
.L8024F808:
|
|
/* 17E0E8 8024F808 8C820000 */ lw $v0, ($a0)
|
|
/* 17E0EC 8024F80C 10400004 */ beqz $v0, .L8024F820
|
|
/* 17E0F0 8024F810 24A50001 */ addiu $a1, $a1, 1
|
|
/* 17E0F4 8024F814 AC60FFE0 */ sw $zero, -0x20($v1)
|
|
/* 17E0F8 8024F818 AC69FFDC */ sw $t1, -0x24($v1)
|
|
/* 17E0FC 8024F81C AC680000 */ sw $t0, ($v1)
|
|
.L8024F820:
|
|
/* 17E100 8024F820 2463004C */ addiu $v1, $v1, 0x4c
|
|
/* 17E104 8024F824 84C20012 */ lh $v0, 0x12($a2)
|
|
/* 17E108 8024F828 00A2102A */ slt $v0, $a1, $v0
|
|
/* 17E10C 8024F82C 1440FFF6 */ bnez $v0, .L8024F808
|
|
/* 17E110 8024F830 2484004C */ addiu $a0, $a0, 0x4c
|
|
.L8024F834:
|
|
/* 17E114 8024F834 24E70001 */ addiu $a3, $a3, 1
|
|
.L8024F838:
|
|
/* 17E118 8024F838 28E20020 */ slti $v0, $a3, 0x20
|
|
/* 17E11C 8024F83C 1440FFE7 */ bnez $v0, .L8024F7DC
|
|
/* 17E120 8024F840 24C6001C */ addiu $a2, $a2, 0x1c
|
|
/* 17E124 8024F844 03E00008 */ jr $ra
|
|
/* 17E128 8024F848 00000000 */ nop
|