mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 04:52:34 +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>
86 lines
4.0 KiB
ArmAsm
86 lines
4.0 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_80052CFC
|
|
/* 2E0FC 80052CFC 240A00FC */ addiu $t2, $zero, 0xfc
|
|
/* 2E100 80052D00 240900FB */ addiu $t1, $zero, 0xfb
|
|
/* 2E104 80052D04 240800FD */ addiu $t0, $zero, 0xfd
|
|
/* 2E108 80052D08 240700FE */ addiu $a3, $zero, 0xfe
|
|
/* 2E10C 80052D0C 24060080 */ addiu $a2, $zero, 0x80
|
|
.L80052D10:
|
|
/* 2E110 80052D10 8C85001C */ lw $a1, 0x1c($a0)
|
|
/* 2E114 80052D14 90A30000 */ lbu $v1, ($a1)
|
|
/* 2E118 80052D18 80A20000 */ lb $v0, ($a1)
|
|
/* 2E11C 80052D1C 24A50001 */ addiu $a1, $a1, 1
|
|
/* 2E120 80052D20 0441003B */ bgez $v0, .L80052E10
|
|
/* 2E124 80052D24 AC85001C */ sw $a1, 0x1c($a0)
|
|
/* 2E128 80052D28 306300FF */ andi $v1, $v1, 0xff
|
|
/* 2E12C 80052D2C 106A0023 */ beq $v1, $t2, .L80052DBC
|
|
/* 2E130 80052D30 286200FD */ slti $v0, $v1, 0xfd
|
|
/* 2E134 80052D34 10400005 */ beqz $v0, .L80052D4C
|
|
/* 2E138 80052D38 00000000 */ nop
|
|
/* 2E13C 80052D3C 10690025 */ beq $v1, $t1, .L80052DD4
|
|
/* 2E140 80052D40 24A20001 */ addiu $v0, $a1, 1
|
|
/* 2E144 80052D44 08014B80 */ j .L80052E00
|
|
/* 2E148 80052D48 00000000 */ nop
|
|
.L80052D4C:
|
|
/* 2E14C 80052D4C 1068000B */ beq $v1, $t0, .L80052D7C
|
|
/* 2E150 80052D50 00000000 */ nop
|
|
/* 2E154 80052D54 1467002A */ bne $v1, $a3, .L80052E00
|
|
/* 2E158 80052D58 24A20001 */ addiu $v0, $a1, 1
|
|
/* 2E15C 80052D5C 90A30000 */ lbu $v1, ($a1)
|
|
/* 2E160 80052D60 AC82001C */ sw $v0, 0x1c($a0)
|
|
/* 2E164 80052D64 306200FF */ andi $v0, $v1, 0xff
|
|
/* 2E168 80052D68 2C420081 */ sltiu $v0, $v0, 0x81
|
|
/* 2E16C 80052D6C 50400001 */ beql $v0, $zero, .L80052D74
|
|
/* 2E170 80052D70 24030080 */ addiu $v1, $zero, 0x80
|
|
.L80052D74:
|
|
/* 2E174 80052D74 08014B44 */ j .L80052D10
|
|
/* 2E178 80052D78 AC830030 */ sw $v1, 0x30($a0)
|
|
.L80052D7C:
|
|
/* 2E17C 80052D7C 80A30000 */ lb $v1, ($a1)
|
|
/* 2E180 80052D80 8C820030 */ lw $v0, 0x30($a0)
|
|
/* 2E184 80052D84 00431021 */ addu $v0, $v0, $v1
|
|
/* 2E188 80052D88 AC820030 */ sw $v0, 0x30($a0)
|
|
/* 2E18C 80052D8C 0040182D */ daddu $v1, $v0, $zero
|
|
/* 2E190 80052D90 24A20001 */ addiu $v0, $a1, 1
|
|
/* 2E194 80052D94 AC82001C */ sw $v0, 0x1c($a0)
|
|
/* 2E198 80052D98 28620081 */ slti $v0, $v1, 0x81
|
|
/* 2E19C 80052D9C 14400003 */ bnez $v0, .L80052DAC
|
|
/* 2E1A0 80052DA0 00000000 */ nop
|
|
/* 2E1A4 80052DA4 08014B44 */ j .L80052D10
|
|
/* 2E1A8 80052DA8 AC860030 */ sw $a2, 0x30($a0)
|
|
.L80052DAC:
|
|
/* 2E1AC 80052DAC 0462FFD8 */ bltzl $v1, .L80052D10
|
|
/* 2E1B0 80052DB0 AC800030 */ sw $zero, 0x30($a0)
|
|
/* 2E1B4 80052DB4 08014B44 */ j .L80052D10
|
|
/* 2E1B8 80052DB8 00000000 */ nop
|
|
.L80052DBC:
|
|
/* 2E1BC 80052DBC 90A30000 */ lbu $v1, ($a1)
|
|
/* 2E1C0 80052DC0 24A20001 */ addiu $v0, $a1, 1
|
|
/* 2E1C4 80052DC4 AC82001C */ sw $v0, 0x1c($a0)
|
|
/* 2E1C8 80052DC8 AC820034 */ sw $v0, 0x34($a0)
|
|
/* 2E1CC 80052DCC 08014B44 */ j .L80052D10
|
|
/* 2E1D0 80052DD0 A0830038 */ sb $v1, 0x38($a0)
|
|
.L80052DD4:
|
|
/* 2E1D4 80052DD4 90830038 */ lbu $v1, 0x38($a0)
|
|
/* 2E1D8 80052DD8 10600006 */ beqz $v1, .L80052DF4
|
|
/* 2E1DC 80052DDC AC82001C */ sw $v0, 0x1c($a0)
|
|
/* 2E1E0 80052DE0 2462FFFF */ addiu $v0, $v1, -1
|
|
/* 2E1E4 80052DE4 A0820038 */ sb $v0, 0x38($a0)
|
|
/* 2E1E8 80052DE8 304200FF */ andi $v0, $v0, 0xff
|
|
/* 2E1EC 80052DEC 1040FFC8 */ beqz $v0, .L80052D10
|
|
/* 2E1F0 80052DF0 00000000 */ nop
|
|
.L80052DF4:
|
|
/* 2E1F4 80052DF4 8C820034 */ lw $v0, 0x34($a0)
|
|
/* 2E1F8 80052DF8 08014B44 */ j .L80052D10
|
|
/* 2E1FC 80052DFC AC82001C */ sw $v0, 0x1c($a0)
|
|
.L80052E00:
|
|
/* 2E200 80052E00 8C82001C */ lw $v0, 0x1c($a0)
|
|
/* 2E204 80052E04 24420001 */ addiu $v0, $v0, 1
|
|
/* 2E208 80052E08 08014B44 */ j .L80052D10
|
|
/* 2E20C 80052E0C AC82001C */ sw $v0, 0x1c($a0)
|
|
.L80052E10:
|
|
/* 2E210 80052E10 03E00008 */ jr $ra
|
|
/* 2E214 80052E14 0060102D */ daddu $v0, $v1, $zero
|