mirror of
https://github.com/pmret/papermario.git
synced 2024-11-15 07:22:29 +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>
47 lines
2.2 KiB
ArmAsm
47 lines
2.2 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel osContGetReadData
|
|
/* 3CE28 80061A28 27BDFFF0 */ addiu $sp, $sp, -0x10
|
|
/* 3CE2C 80061A2C 00804821 */ addu $t1, $a0, $zero
|
|
/* 3CE30 80061A30 3C02800A */ lui $v0, %hi(D_8009A606)
|
|
/* 3CE34 80061A34 9042A606 */ lbu $v0, %lo(D_8009A606)($v0)
|
|
/* 3CE38 80061A38 3C08800B */ lui $t0, %hi(D_800B0ED0)
|
|
/* 3CE3C 80061A3C 25080ED0 */ addiu $t0, $t0, %lo(D_800B0ED0)
|
|
/* 3CE40 80061A40 1840001D */ blez $v0, .L80061AB8
|
|
/* 3CE44 80061A44 00003821 */ addu $a3, $zero, $zero
|
|
/* 3CE48 80061A48 24860003 */ addiu $a2, $a0, 3
|
|
.L80061A4C:
|
|
/* 3CE4C 80061A4C 89020000 */ lwl $v0, ($t0)
|
|
/* 3CE50 80061A50 99020003 */ lwr $v0, 3($t0)
|
|
/* 3CE54 80061A54 89030004 */ lwl $v1, 4($t0)
|
|
/* 3CE58 80061A58 99030007 */ lwr $v1, 7($t0)
|
|
/* 3CE5C 80061A5C ABA20000 */ swl $v0, ($sp)
|
|
/* 3CE60 80061A60 BBA20003 */ swr $v0, 3($sp)
|
|
/* 3CE64 80061A64 ABA30004 */ swl $v1, 4($sp)
|
|
/* 3CE68 80061A68 BBA30007 */ swr $v1, 7($sp)
|
|
/* 3CE6C 80061A6C 93A20002 */ lbu $v0, 2($sp)
|
|
/* 3CE70 80061A70 304200C0 */ andi $v0, $v0, 0xc0
|
|
/* 3CE74 80061A74 00021102 */ srl $v0, $v0, 4
|
|
/* 3CE78 80061A78 14400007 */ bnez $v0, .L80061A98
|
|
/* 3CE7C 80061A7C A0C20001 */ sb $v0, 1($a2)
|
|
/* 3CE80 80061A80 97A20004 */ lhu $v0, 4($sp)
|
|
/* 3CE84 80061A84 A5220000 */ sh $v0, ($t1)
|
|
/* 3CE88 80061A88 93A20006 */ lbu $v0, 6($sp)
|
|
/* 3CE8C 80061A8C A0C2FFFF */ sb $v0, -1($a2)
|
|
/* 3CE90 80061A90 93A20007 */ lbu $v0, 7($sp)
|
|
/* 3CE94 80061A94 A0C20000 */ sb $v0, ($a2)
|
|
.L80061A98:
|
|
/* 3CE98 80061A98 24E70001 */ addiu $a3, $a3, 1
|
|
/* 3CE9C 80061A9C 25080008 */ addiu $t0, $t0, 8
|
|
/* 3CEA0 80061AA0 3C02800A */ lui $v0, %hi(D_8009A606)
|
|
/* 3CEA4 80061AA4 9042A606 */ lbu $v0, %lo(D_8009A606)($v0)
|
|
/* 3CEA8 80061AA8 24C60006 */ addiu $a2, $a2, 6
|
|
/* 3CEAC 80061AAC 00E2102A */ slt $v0, $a3, $v0
|
|
/* 3CEB0 80061AB0 1440FFE6 */ bnez $v0, .L80061A4C
|
|
/* 3CEB4 80061AB4 25290006 */ addiu $t1, $t1, 6
|
|
.L80061AB8:
|
|
/* 3CEB8 80061AB8 27BD0010 */ addiu $sp, $sp, 0x10
|
|
/* 3CEBC 80061ABC 03E00008 */ jr $ra
|
|
/* 3CEC0 80061AC0 00000000 */ nop
|