mirror of
https://github.com/pmret/papermario.git
synced 2024-11-13 22:43:00 +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>
76 lines
3.8 KiB
ArmAsm
76 lines
3.8 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_80053E58
|
|
/* 2F258 80053E58 27BDFFC0 */ addiu $sp, $sp, -0x40
|
|
/* 2F25C 80053E5C AFB00020 */ sw $s0, 0x20($sp)
|
|
/* 2F260 80053E60 00A0802D */ daddu $s0, $a1, $zero
|
|
/* 2F264 80053E64 AFB20028 */ sw $s2, 0x28($sp)
|
|
/* 2F268 80053E68 3C12800A */ lui $s2, %hi(D_8009A5C0)
|
|
/* 2F26C 80053E6C 8E52A5C0 */ lw $s2, %lo(D_8009A5C0)($s2)
|
|
/* 2F270 80053E70 24050010 */ addiu $a1, $zero, 0x10
|
|
/* 2F274 80053E74 AFBF0038 */ sw $ra, 0x38($sp)
|
|
/* 2F278 80053E78 AFB50034 */ sw $s5, 0x34($sp)
|
|
/* 2F27C 80053E7C AFB40030 */ sw $s4, 0x30($sp)
|
|
/* 2F280 80053E80 AFB3002C */ sw $s3, 0x2c($sp)
|
|
/* 2F284 80053E84 AFB10024 */ sw $s1, 0x24($sp)
|
|
/* 2F288 80053E88 8E42002C */ lw $v0, 0x2c($s2)
|
|
/* 2F28C 80053E8C 000420C0 */ sll $a0, $a0, 3
|
|
/* 2F290 80053E90 00448821 */ addu $s1, $v0, $a0
|
|
/* 2F294 80053E94 96240000 */ lhu $a0, ($s1)
|
|
/* 2F298 80053E98 0C01511F */ jal snd_fetch_SBN_file
|
|
/* 2F29C 80053E9C 27A60018 */ addiu $a2, $sp, 0x18
|
|
/* 2F2A0 80053EA0 0040982D */ daddu $s3, $v0, $zero
|
|
/* 2F2A4 80053EA4 16600026 */ bnez $s3, .L80053F40
|
|
/* 2F2A8 80053EA8 0260102D */ daddu $v0, $s3, $zero
|
|
/* 2F2AC 80053EAC 3C0200FF */ lui $v0, 0xff
|
|
/* 2F2B0 80053EB0 3442FFFF */ ori $v0, $v0, 0xffff
|
|
/* 2F2B4 80053EB4 0200282D */ daddu $a1, $s0, $zero
|
|
/* 2F2B8 80053EB8 0000802D */ daddu $s0, $zero, $zero
|
|
/* 2F2BC 80053EBC 3C1400FF */ lui $s4, 0xff
|
|
/* 2F2C0 80053EC0 3694FFFF */ ori $s4, $s4, 0xffff
|
|
/* 2F2C4 80053EC4 24150030 */ addiu $s5, $zero, 0x30
|
|
/* 2F2C8 80053EC8 8FA6001C */ lw $a2, 0x1c($sp)
|
|
/* 2F2CC 80053ECC 8FA40018 */ lw $a0, 0x18($sp)
|
|
/* 2F2D0 80053ED0 0C015380 */ jal snd_read_rom
|
|
/* 2F2D4 80053ED4 00C23024 */ and $a2, $a2, $v0
|
|
.L80053ED8:
|
|
/* 2F2D8 80053ED8 96220002 */ lhu $v0, 2($s1)
|
|
/* 2F2DC 80053EDC 50400014 */ beql $v0, $zero, .L80053F30
|
|
/* 2F2E0 80053EE0 26310002 */ addiu $s1, $s1, 2
|
|
/* 2F2E4 80053EE4 8E440020 */ lw $a0, 0x20($s2)
|
|
/* 2F2E8 80053EE8 000210C0 */ sll $v0, $v0, 3
|
|
/* 2F2EC 80053EEC 00822021 */ addu $a0, $a0, $v0
|
|
/* 2F2F0 80053EF0 8C820000 */ lw $v0, ($a0)
|
|
/* 2F2F4 80053EF4 8E43001C */ lw $v1, 0x1c($s2)
|
|
/* 2F2F8 80053EF8 00541024 */ and $v0, $v0, $s4
|
|
/* 2F2FC 80053EFC 00431821 */ addu $v1, $v0, $v1
|
|
/* 2F300 80053F00 AFA30010 */ sw $v1, 0x10($sp)
|
|
/* 2F304 80053F04 8C820004 */ lw $v0, 4($a0)
|
|
/* 2F308 80053F08 AFA20014 */ sw $v0, 0x14($sp)
|
|
/* 2F30C 80053F0C 00021602 */ srl $v0, $v0, 0x18
|
|
/* 2F310 80053F10 54550006 */ bnel $v0, $s5, .L80053F2C
|
|
/* 2F314 80053F14 24130066 */ addiu $s3, $zero, 0x66
|
|
/* 2F318 80053F18 0060202D */ daddu $a0, $v1, $zero
|
|
/* 2F31C 80053F1C 0C015313 */ jal snd_load_BK
|
|
/* 2F320 80053F20 0200282D */ daddu $a1, $s0, $zero
|
|
/* 2F324 80053F24 08014FCC */ j .L80053F30
|
|
/* 2F328 80053F28 26310002 */ addiu $s1, $s1, 2
|
|
.L80053F2C:
|
|
/* 2F32C 80053F2C 26310002 */ addiu $s1, $s1, 2
|
|
.L80053F30:
|
|
/* 2F330 80053F30 26100001 */ addiu $s0, $s0, 1
|
|
/* 2F334 80053F34 2A020003 */ slti $v0, $s0, 3
|
|
/* 2F338 80053F38 1440FFE7 */ bnez $v0, .L80053ED8
|
|
/* 2F33C 80053F3C 0260102D */ daddu $v0, $s3, $zero
|
|
.L80053F40:
|
|
/* 2F340 80053F40 8FBF0038 */ lw $ra, 0x38($sp)
|
|
/* 2F344 80053F44 8FB50034 */ lw $s5, 0x34($sp)
|
|
/* 2F348 80053F48 8FB40030 */ lw $s4, 0x30($sp)
|
|
/* 2F34C 80053F4C 8FB3002C */ lw $s3, 0x2c($sp)
|
|
/* 2F350 80053F50 8FB20028 */ lw $s2, 0x28($sp)
|
|
/* 2F354 80053F54 8FB10024 */ lw $s1, 0x24($sp)
|
|
/* 2F358 80053F58 8FB00020 */ lw $s0, 0x20($sp)
|
|
/* 2F35C 80053F5C 03E00008 */ jr $ra
|
|
/* 2F360 80053F60 27BD0040 */ addiu $sp, $sp, 0x40
|