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>
46 lines
2.1 KiB
ArmAsm
46 lines
2.1 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_8004D07C
|
|
/* 2847C 8004D07C 00A0382D */ daddu $a3, $a1, $zero
|
|
/* 28480 8004D080 8CE20000 */ lw $v0, ($a3)
|
|
/* 28484 8004D084 90430000 */ lbu $v1, ($v0)
|
|
/* 28488 8004D088 90450001 */ lbu $a1, 1($v0)
|
|
/* 2848C 8004D08C 90440002 */ lbu $a0, 2($v0)
|
|
/* 28490 8004D090 24420003 */ addiu $v0, $v0, 3
|
|
/* 28494 8004D094 ACE20000 */ sw $v0, ($a3)
|
|
/* 28498 8004D098 00031A00 */ sll $v1, $v1, 8
|
|
/* 2849C 8004D09C 00A32821 */ addu $a1, $a1, $v1
|
|
/* 284A0 8004D0A0 00A0302D */ daddu $a2, $a1, $zero
|
|
/* 284A4 8004D0A4 3084007F */ andi $a0, $a0, 0x7f
|
|
/* 284A8 8004D0A8 00041040 */ sll $v0, $a0, 1
|
|
/* 284AC 8004D0AC 00441021 */ addu $v0, $v0, $a0
|
|
/* 284B0 8004D0B0 000210C0 */ sll $v0, $v0, 3
|
|
/* 284B4 8004D0B4 00441821 */ addu $v1, $v0, $a0
|
|
/* 284B8 8004D0B8 00052C00 */ sll $a1, $a1, 0x10
|
|
/* 284BC 8004D0BC 1CA00002 */ bgtz $a1, .L8004D0C8
|
|
/* 284C0 8004D0C0 00032080 */ sll $a0, $v1, 2
|
|
/* 284C4 8004D0C4 24060001 */ addiu $a2, $zero, 1
|
|
.L8004D0C8:
|
|
/* 284C8 8004D0C8 8CE20060 */ lw $v0, 0x60($a3)
|
|
/* 284CC 8004D0CC 00031C80 */ sll $v1, $v1, 0x12
|
|
/* 284D0 8004D0D0 00621823 */ subu $v1, $v1, $v0
|
|
/* 284D4 8004D0D4 00061400 */ sll $v0, $a2, 0x10
|
|
/* 284D8 8004D0D8 00021403 */ sra $v0, $v0, 0x10
|
|
/* 284DC 8004D0DC 14400002 */ bnez $v0, .L8004D0E8
|
|
/* 284E0 8004D0E0 0062001A */ div $zero, $v1, $v0
|
|
/* 284E4 8004D0E4 0007000D */ break 7
|
|
.L8004D0E8:
|
|
/* 284E8 8004D0E8 2401FFFF */ addiu $at, $zero, -1
|
|
/* 284EC 8004D0EC 14410004 */ bne $v0, $at, .L8004D100
|
|
/* 284F0 8004D0F0 3C018000 */ lui $at, 0x8000
|
|
/* 284F4 8004D0F4 14610002 */ bne $v1, $at, .L8004D100
|
|
/* 284F8 8004D0F8 00000000 */ nop
|
|
/* 284FC 8004D0FC 0006000D */ break 6
|
|
.L8004D100:
|
|
/* 28500 8004D100 00001812 */ mflo $v1
|
|
/* 28504 8004D104 A4E60068 */ sh $a2, 0x68($a3)
|
|
/* 28508 8004D108 A4E4006A */ sh $a0, 0x6a($a3)
|
|
/* 2850C 8004D10C 03E00008 */ jr $ra
|
|
/* 28510 8004D110 ACE30064 */ sw $v1, 0x64($a3)
|