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>
40 lines
1.9 KiB
ArmAsm
40 lines
1.9 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_800543F4
|
|
/* 2F7F4 800543F4 0000182D */ daddu $v1, $zero, $zero
|
|
/* 2F7F8 800543F8 3C06800A */ lui $a2, %hi(D_8009A5A0)
|
|
/* 2F7FC 800543FC 8CC6A5A0 */ lw $a2, %lo(D_8009A5A0)($a2)
|
|
/* 2F800 80054400 2484FFFF */ addiu $a0, $a0, -1
|
|
/* 2F804 80054404 2C820006 */ sltiu $v0, $a0, 6
|
|
/* 2F808 80054408 10400019 */ beqz $v0, .L80054470
|
|
/* 2F80C 8005440C 00052900 */ sll $a1, $a1, 4
|
|
/* 2F810 80054410 00041080 */ sll $v0, $a0, 2
|
|
/* 2F814 80054414 3C01800A */ lui $at, %hi(D_800988D0)
|
|
/* 2F818 80054418 00220821 */ addu $at, $at, $v0
|
|
/* 2F81C 8005441C 8C2288D0 */ lw $v0, %lo(D_800988D0)($at)
|
|
/* 2F820 80054420 00400008 */ jr $v0
|
|
/* 2F824 80054424 00000000 */ nop
|
|
/* 2F828 80054428 00051080 */ sll $v0, $a1, 2
|
|
/* 2F82C 8005442C 0801511B */ j .L8005446C
|
|
/* 2F830 80054430 244204EC */ addiu $v0, $v0, 0x4ec
|
|
/* 2F834 80054434 00051080 */ sll $v0, $a1, 2
|
|
/* 2F838 80054438 0801511B */ j .L8005446C
|
|
/* 2F83C 8005443C 244205EC */ addiu $v0, $v0, 0x5ec
|
|
/* 2F840 80054440 00051080 */ sll $v0, $a1, 2
|
|
/* 2F844 80054444 0801511B */ j .L8005446C
|
|
/* 2F848 80054448 244209EC */ addiu $v0, $v0, 0x9ec
|
|
/* 2F84C 8005444C 00051080 */ sll $v0, $a1, 2
|
|
/* 2F850 80054450 0801511B */ j .L8005446C
|
|
/* 2F854 80054454 24420DEC */ addiu $v0, $v0, 0xdec
|
|
/* 2F858 80054458 00051080 */ sll $v0, $a1, 2
|
|
/* 2F85C 8005445C 0801511B */ j .L8005446C
|
|
/* 2F860 80054460 244211EC */ addiu $v0, $v0, 0x11ec
|
|
/* 2F864 80054464 00051080 */ sll $v0, $a1, 2
|
|
/* 2F868 80054468 244200EC */ addiu $v0, $v0, 0xec
|
|
.L8005446C:
|
|
/* 2F86C 8005446C 00C21821 */ addu $v1, $a2, $v0
|
|
.L80054470:
|
|
/* 2F870 80054470 03E00008 */ jr $ra
|
|
/* 2F874 80054474 0060102D */ daddu $v0, $v1, $zero
|