mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 04:52:34 +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.8 KiB
ArmAsm
40 lines
1.8 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_80050568
|
|
/* 2B968 80050568 8C820050 */ lw $v0, 0x50($a0)
|
|
/* 2B96C 8005056C 30A500FF */ andi $a1, $a1, 0xff
|
|
/* 2B970 80050570 000221C3 */ sra $a0, $v0, 7
|
|
/* 2B974 80050574 00021883 */ sra $v1, $v0, 2
|
|
/* 2B978 80050578 00832021 */ addu $a0, $a0, $v1
|
|
/* 2B97C 8005057C 30840001 */ andi $a0, $a0, 1
|
|
/* 2B980 80050580 00021A03 */ sra $v1, $v0, 8
|
|
/* 2B984 80050584 3063003F */ andi $v1, $v1, 0x3f
|
|
/* 2B988 80050588 00021100 */ sll $v0, $v0, 4
|
|
/* 2B98C 8005058C 304200C0 */ andi $v0, $v0, 0xc0
|
|
/* 2B990 80050590 10800007 */ beqz $a0, .L800505B0
|
|
/* 2B994 80050594 00621821 */ addu $v1, $v1, $v0
|
|
/* 2B998 80050598 30C200FF */ andi $v0, $a2, 0xff
|
|
/* 2B99C 8005059C 00430018 */ mult $v0, $v1
|
|
/* 2B9A0 800505A0 00003812 */ mflo $a3
|
|
/* 2B9A4 800505A4 00071203 */ sra $v0, $a3, 8
|
|
/* 2B9A8 800505A8 08014171 */ j .L800505C4
|
|
/* 2B9AC 800505AC 00A22821 */ addu $a1, $a1, $v0
|
|
.L800505B0:
|
|
/* 2B9B0 800505B0 30C200FF */ andi $v0, $a2, 0xff
|
|
/* 2B9B4 800505B4 00430018 */ mult $v0, $v1
|
|
/* 2B9B8 800505B8 00003812 */ mflo $a3
|
|
/* 2B9BC 800505BC 00071203 */ sra $v0, $a3, 8
|
|
/* 2B9C0 800505C0 00A22823 */ subu $a1, $a1, $v0
|
|
.L800505C4:
|
|
/* 2B9C4 800505C4 04A10003 */ bgez $a1, .L800505D4
|
|
/* 2B9C8 800505C8 28A20080 */ slti $v0, $a1, 0x80
|
|
/* 2B9CC 800505CC 08014177 */ j .L800505DC
|
|
/* 2B9D0 800505D0 0000282D */ daddu $a1, $zero, $zero
|
|
.L800505D4:
|
|
/* 2B9D4 800505D4 50400001 */ beql $v0, $zero, .L800505DC
|
|
/* 2B9D8 800505D8 2405007F */ addiu $a1, $zero, 0x7f
|
|
.L800505DC:
|
|
/* 2B9DC 800505DC 03E00008 */ jr $ra
|
|
/* 2B9E0 800505E0 30A200FF */ andi $v0, $a1, 0xff
|