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>
61 lines
3.0 KiB
ArmAsm
61 lines
3.0 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel osPfsCheckRamArea
|
|
/* 44788 80069388 27BDFF78 */ addiu $sp, $sp, -0x88
|
|
/* 4478C 8006938C AFB00078 */ sw $s0, 0x78($sp)
|
|
/* 44790 80069390 00808021 */ addu $s0, $a0, $zero
|
|
/* 44794 80069394 00002821 */ addu $a1, $zero, $zero
|
|
/* 44798 80069398 AFBF0080 */ sw $ra, 0x80($sp)
|
|
/* 4479C 8006939C 0C01A5B4 */ jal osPfsSelectBank
|
|
/* 447A0 800693A0 AFB1007C */ sw $s1, 0x7c($sp)
|
|
/* 447A4 800693A4 14400026 */ bnez $v0, .L80069440
|
|
/* 447A8 800693A8 00003021 */ addu $a2, $zero, $zero
|
|
/* 447AC 800693AC 8E040004 */ lw $a0, 4($s0)
|
|
/* 447B0 800693B0 8E050008 */ lw $a1, 8($s0)
|
|
/* 447B4 800693B4 0C01A874 */ jal osContRamRead
|
|
/* 447B8 800693B8 27A70058 */ addiu $a3, $sp, 0x58
|
|
/* 447BC 800693BC 14400020 */ bnez $v0, .L80069440
|
|
/* 447C0 800693C0 27A30037 */ addiu $v1, $sp, 0x37
|
|
/* 447C4 800693C4 2402001F */ addiu $v0, $zero, 0x1f
|
|
.L800693C8:
|
|
/* 447C8 800693C8 A0620000 */ sb $v0, ($v1)
|
|
/* 447CC 800693CC 2442FFFF */ addiu $v0, $v0, -1
|
|
/* 447D0 800693D0 0441FFFD */ bgez $v0, .L800693C8
|
|
/* 447D4 800693D4 2463FFFF */ addiu $v1, $v1, -1
|
|
/* 447D8 800693D8 AFA00010 */ sw $zero, 0x10($sp)
|
|
/* 447DC 800693DC 8E040004 */ lw $a0, 4($s0)
|
|
/* 447E0 800693E0 8E050008 */ lw $a1, 8($s0)
|
|
/* 447E4 800693E4 00003021 */ addu $a2, $zero, $zero
|
|
/* 447E8 800693E8 0C01A8F0 */ jal osContRamWrite
|
|
/* 447EC 800693EC 27A70018 */ addiu $a3, $sp, 0x18
|
|
/* 447F0 800693F0 14400013 */ bnez $v0, .L80069440
|
|
/* 447F4 800693F4 00003021 */ addu $a2, $zero, $zero
|
|
/* 447F8 800693F8 8E040004 */ lw $a0, 4($s0)
|
|
/* 447FC 800693FC 8E050008 */ lw $a1, 8($s0)
|
|
/* 44800 80069400 27B10038 */ addiu $s1, $sp, 0x38
|
|
/* 44804 80069404 0C01A874 */ jal osContRamRead
|
|
/* 44808 80069408 02203821 */ addu $a3, $s1, $zero
|
|
/* 4480C 8006940C 1440000C */ bnez $v0, .L80069440
|
|
/* 44810 80069410 27A40018 */ addiu $a0, $sp, 0x18
|
|
/* 44814 80069414 02202821 */ addu $a1, $s1, $zero
|
|
/* 44818 80069418 0C01AE1C */ jal bcmp
|
|
/* 4481C 8006941C 24060020 */ addiu $a2, $zero, 0x20
|
|
/* 44820 80069420 14400007 */ bnez $v0, .L80069440
|
|
/* 44824 80069424 2402000B */ addiu $v0, $zero, 0xb
|
|
/* 44828 80069428 AFA00010 */ sw $zero, 0x10($sp)
|
|
/* 4482C 8006942C 8E040004 */ lw $a0, 4($s0)
|
|
/* 44830 80069430 8E050008 */ lw $a1, 8($s0)
|
|
/* 44834 80069434 00003021 */ addu $a2, $zero, $zero
|
|
/* 44838 80069438 0C01A8F0 */ jal osContRamWrite
|
|
/* 4483C 8006943C 27A70058 */ addiu $a3, $sp, 0x58
|
|
.L80069440:
|
|
/* 44840 80069440 8FBF0080 */ lw $ra, 0x80($sp)
|
|
/* 44844 80069444 8FB1007C */ lw $s1, 0x7c($sp)
|
|
/* 44848 80069448 8FB00078 */ lw $s0, 0x78($sp)
|
|
/* 4484C 8006944C 03E00008 */ jr $ra
|
|
/* 44850 80069450 27BD0088 */ addiu $sp, $sp, 0x88
|
|
/* 44854 80069454 00000000 */ nop
|
|
/* 44858 80069458 00000000 */ nop
|
|
/* 4485C 8006945C 00000000 */ nop
|