mirror of
https://github.com/pmret/papermario.git
synced 2024-11-14 23:13:10 +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>
105 lines
5.1 KiB
ArmAsm
105 lines
5.1 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_80266978
|
|
/* 195258 80266978 0000302D */ daddu $a2, $zero, $zero
|
|
/* 19525C 8026697C 2409003C */ addiu $t1, $zero, 0x3c
|
|
/* 195260 80266980 24080005 */ addiu $t0, $zero, 5
|
|
/* 195264 80266984 3C07800E */ lui $a3, %hi(gBattleStatus)
|
|
/* 195268 80266988 24E7C070 */ addiu $a3, $a3, %lo(gBattleStatus)
|
|
/* 19526C 8026698C 00E0282D */ daddu $a1, $a3, $zero
|
|
.L80266990:
|
|
/* 195270 80266990 8CA400E0 */ lw $a0, 0xe0($a1)
|
|
/* 195274 80266994 50800018 */ beql $a0, $zero, .L802669F8
|
|
/* 195278 80266998 24C60001 */ addiu $a2, $a2, 1
|
|
/* 19527C 8026699C 80820205 */ lb $v0, 0x205($a0)
|
|
/* 195280 802669A0 14490007 */ bne $v0, $t1, .L802669C0
|
|
/* 195284 802669A4 00000000 */ nop
|
|
/* 195288 802669A8 8C820200 */ lw $v0, 0x200($a0)
|
|
/* 19528C 802669AC 10400003 */ beqz $v0, .L802669BC
|
|
/* 195290 802669B0 00000000 */ nop
|
|
/* 195294 802669B4 8C42000C */ lw $v0, 0xc($v0)
|
|
/* 195298 802669B8 AC400024 */ sw $zero, 0x24($v0)
|
|
.L802669BC:
|
|
/* 19529C 802669BC 80820205 */ lb $v0, 0x205($a0)
|
|
.L802669C0:
|
|
/* 1952A0 802669C0 14480007 */ bne $v0, $t0, .L802669E0
|
|
/* 1952A4 802669C4 00000000 */ nop
|
|
/* 1952A8 802669C8 8C820200 */ lw $v0, 0x200($a0)
|
|
/* 1952AC 802669CC 10400004 */ beqz $v0, .L802669E0
|
|
/* 1952B0 802669D0 00000000 */ nop
|
|
/* 1952B4 802669D4 8C42000C */ lw $v0, 0xc($v0)
|
|
/* 1952B8 802669D8 AC400018 */ sw $zero, 0x18($v0)
|
|
/* 1952BC 802669DC AC800200 */ sw $zero, 0x200($a0)
|
|
.L802669E0:
|
|
/* 1952C0 802669E0 80820205 */ lb $v0, 0x205($a0)
|
|
/* 1952C4 802669E4 90830205 */ lbu $v1, 0x205($a0)
|
|
/* 1952C8 802669E8 18400003 */ blez $v0, .L802669F8
|
|
/* 1952CC 802669EC 24C60001 */ addiu $a2, $a2, 1
|
|
/* 1952D0 802669F0 2462FFFF */ addiu $v0, $v1, -1
|
|
/* 1952D4 802669F4 A0820205 */ sb $v0, 0x205($a0)
|
|
.L802669F8:
|
|
/* 1952D8 802669F8 28C20018 */ slti $v0, $a2, 0x18
|
|
/* 1952DC 802669FC 1440FFE4 */ bnez $v0, .L80266990
|
|
/* 1952E0 80266A00 24A50004 */ addiu $a1, $a1, 4
|
|
/* 1952E4 80266A04 8CE400D8 */ lw $a0, 0xd8($a3)
|
|
/* 1952E8 80266A08 10800018 */ beqz $a0, .L80266A6C
|
|
/* 1952EC 80266A0C 2402003C */ addiu $v0, $zero, 0x3c
|
|
/* 1952F0 80266A10 80830205 */ lb $v1, 0x205($a0)
|
|
/* 1952F4 80266A14 14620008 */ bne $v1, $v0, .L80266A38
|
|
/* 1952F8 80266A18 24020005 */ addiu $v0, $zero, 5
|
|
/* 1952FC 80266A1C 8C820200 */ lw $v0, 0x200($a0)
|
|
/* 195300 80266A20 50400005 */ beql $v0, $zero, .L80266A38
|
|
/* 195304 80266A24 24020005 */ addiu $v0, $zero, 5
|
|
/* 195308 80266A28 8C42000C */ lw $v0, 0xc($v0)
|
|
/* 19530C 80266A2C AC400024 */ sw $zero, 0x24($v0)
|
|
/* 195310 80266A30 80830205 */ lb $v1, 0x205($a0)
|
|
/* 195314 80266A34 24020005 */ addiu $v0, $zero, 5
|
|
.L80266A38:
|
|
/* 195318 80266A38 14620007 */ bne $v1, $v0, .L80266A58
|
|
/* 19531C 80266A3C 00000000 */ nop
|
|
/* 195320 80266A40 8C820200 */ lw $v0, 0x200($a0)
|
|
/* 195324 80266A44 10400004 */ beqz $v0, .L80266A58
|
|
/* 195328 80266A48 00000000 */ nop
|
|
/* 19532C 80266A4C 8C42000C */ lw $v0, 0xc($v0)
|
|
/* 195330 80266A50 AC400018 */ sw $zero, 0x18($v0)
|
|
/* 195334 80266A54 AC800200 */ sw $zero, 0x200($a0)
|
|
.L80266A58:
|
|
/* 195338 80266A58 80820205 */ lb $v0, 0x205($a0)
|
|
/* 19533C 80266A5C 90830205 */ lbu $v1, 0x205($a0)
|
|
/* 195340 80266A60 18400002 */ blez $v0, .L80266A6C
|
|
/* 195344 80266A64 2462FFFF */ addiu $v0, $v1, -1
|
|
/* 195348 80266A68 A0820205 */ sb $v0, 0x205($a0)
|
|
.L80266A6C:
|
|
/* 19534C 80266A6C 8CE400DC */ lw $a0, 0xdc($a3)
|
|
/* 195350 80266A70 10800018 */ beqz $a0, .L80266AD4
|
|
/* 195354 80266A74 2402003C */ addiu $v0, $zero, 0x3c
|
|
/* 195358 80266A78 80830205 */ lb $v1, 0x205($a0)
|
|
/* 19535C 80266A7C 14620008 */ bne $v1, $v0, .L80266AA0
|
|
/* 195360 80266A80 24020005 */ addiu $v0, $zero, 5
|
|
/* 195364 80266A84 8C820200 */ lw $v0, 0x200($a0)
|
|
/* 195368 80266A88 50400005 */ beql $v0, $zero, .L80266AA0
|
|
/* 19536C 80266A8C 24020005 */ addiu $v0, $zero, 5
|
|
/* 195370 80266A90 8C42000C */ lw $v0, 0xc($v0)
|
|
/* 195374 80266A94 AC400024 */ sw $zero, 0x24($v0)
|
|
/* 195378 80266A98 80830205 */ lb $v1, 0x205($a0)
|
|
/* 19537C 80266A9C 24020005 */ addiu $v0, $zero, 5
|
|
.L80266AA0:
|
|
/* 195380 80266AA0 14620007 */ bne $v1, $v0, .L80266AC0
|
|
/* 195384 80266AA4 00000000 */ nop
|
|
/* 195388 80266AA8 8C820200 */ lw $v0, 0x200($a0)
|
|
/* 19538C 80266AAC 10400004 */ beqz $v0, .L80266AC0
|
|
/* 195390 80266AB0 00000000 */ nop
|
|
/* 195394 80266AB4 8C42000C */ lw $v0, 0xc($v0)
|
|
/* 195398 80266AB8 AC400018 */ sw $zero, 0x18($v0)
|
|
/* 19539C 80266ABC AC800200 */ sw $zero, 0x200($a0)
|
|
.L80266AC0:
|
|
/* 1953A0 80266AC0 80820205 */ lb $v0, 0x205($a0)
|
|
/* 1953A4 80266AC4 90830205 */ lbu $v1, 0x205($a0)
|
|
/* 1953A8 80266AC8 18400002 */ blez $v0, .L80266AD4
|
|
/* 1953AC 80266ACC 2462FFFF */ addiu $v0, $v1, -1
|
|
/* 1953B0 80266AD0 A0820205 */ sb $v0, 0x205($a0)
|
|
.L80266AD4:
|
|
/* 1953B4 80266AD4 03E00008 */ jr $ra
|
|
/* 1953B8 80266AD8 00000000 */ nop
|