mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +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>
55 lines
2.7 KiB
ArmAsm
55 lines
2.7 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_800579BC
|
|
/* 32DBC 800579BC 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
/* 32DC0 800579C0 308400FF */ andi $a0, $a0, 0xff
|
|
/* 32DC4 800579C4 00041140 */ sll $v0, $a0, 5
|
|
/* 32DC8 800579C8 3C038008 */ lui $v1, %hi(D_80078E24)
|
|
/* 32DCC 800579CC 8C638E24 */ lw $v1, %lo(D_80078E24)($v1)
|
|
/* 32DD0 800579D0 00441023 */ subu $v0, $v0, $a0
|
|
/* 32DD4 800579D4 AFBF0010 */ sw $ra, 0x10($sp)
|
|
/* 32DD8 800579D8 8C63001C */ lw $v1, 0x1c($v1)
|
|
/* 32DDC 800579DC 00021080 */ sll $v0, $v0, 2
|
|
/* 32DE0 800579E0 00623821 */ addu $a3, $v1, $v0
|
|
/* 32DE4 800579E4 8CE50064 */ lw $a1, 0x64($a3)
|
|
/* 32DE8 800579E8 8CE20068 */ lw $v0, 0x68($a3)
|
|
/* 32DEC 800579EC 00A2102A */ slt $v0, $a1, $v0
|
|
/* 32DF0 800579F0 14400018 */ bnez $v0, .L80057A54
|
|
/* 32DF4 800579F4 00000000 */ nop
|
|
/* 32DF8 800579F8 3C028008 */ lui $v0, %hi(D_80078151)
|
|
/* 32DFC 800579FC 24428151 */ addiu $v0, $v0, %lo(D_80078151)
|
|
/* 32E00 80057A00 90420000 */ lbu $v0, ($v0)
|
|
/* 32E04 80057A04 54400008 */ bnel $v0, $zero, .L80057A28
|
|
/* 32E08 80057A08 2402007F */ addiu $v0, $zero, 0x7f
|
|
/* 32E0C 80057A0C 84E3004E */ lh $v1, 0x4e($a3)
|
|
/* 32E10 80057A10 3C028008 */ lui $v0, %hi(D_80078EB0)
|
|
/* 32E14 80057A14 84428EB0 */ lh $v0, %lo(D_80078EB0)($v0)
|
|
/* 32E18 80057A18 00620018 */ mult $v1, $v0
|
|
/* 32E1C 80057A1C 00004012 */ mflo $t0
|
|
/* 32E20 80057A20 08015E9A */ j .L80057A68
|
|
/* 32E24 80057A24 00081040 */ sll $v0, $t0, 1
|
|
.L80057A28:
|
|
/* 32E28 80057A28 84E3004C */ lh $v1, 0x4c($a3)
|
|
/* 32E2C 80057A2C 00431023 */ subu $v0, $v0, $v1
|
|
/* 32E30 80057A30 00021040 */ sll $v0, $v0, 1
|
|
/* 32E34 80057A34 84E3004E */ lh $v1, 0x4e($a3)
|
|
/* 32E38 80057A38 3C018008 */ lui $at, %hi(D_80078E30)
|
|
/* 32E3C 80057A3C 00220821 */ addu $at, $at, $v0
|
|
/* 32E40 80057A40 84228E30 */ lh $v0, %lo(D_80078E30)($at)
|
|
/* 32E44 80057A44 00620018 */ mult $v1, $v0
|
|
/* 32E48 80057A48 00004012 */ mflo $t0
|
|
/* 32E4C 80057A4C 08015E9A */ j .L80057A68
|
|
/* 32E50 80057A50 00081040 */ sll $v0, $t0, 1
|
|
.L80057A54:
|
|
/* 32E54 80057A54 84E40050 */ lh $a0, 0x50($a3)
|
|
/* 32E58 80057A58 84E6005A */ lh $a2, 0x5a($a3)
|
|
/* 32E5C 80057A5C 0C015F2D */ jal func_80057CB4
|
|
/* 32E60 80057A60 94E70058 */ lhu $a3, 0x58($a3)
|
|
/* 32E64 80057A64 00021400 */ sll $v0, $v0, 0x10
|
|
.L80057A68:
|
|
/* 32E68 80057A68 00021403 */ sra $v0, $v0, 0x10
|
|
/* 32E6C 80057A6C 8FBF0010 */ lw $ra, 0x10($sp)
|
|
/* 32E70 80057A70 03E00008 */ jr $ra
|
|
/* 32E74 80057A74 27BD0018 */ addiu $sp, $sp, 0x18
|