mirror of
https://github.com/pmret/papermario.git
synced 2024-11-14 15:03:25 +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>
57 lines
2.7 KiB
ArmAsm
57 lines
2.7 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_8004B328
|
|
/* 26728 8004B328 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
/* 2672C 8004B32C 00042400 */ sll $a0, $a0, 0x10
|
|
/* 26730 8004B330 00042403 */ sra $a0, $a0, 0x10
|
|
/* 26734 8004B334 24020001 */ addiu $v0, $zero, 1
|
|
/* 26738 8004B338 AFBF0014 */ sw $ra, 0x14($sp)
|
|
/* 2673C 8004B33C 1082000B */ beq $a0, $v0, .L8004B36C
|
|
/* 26740 8004B340 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 26744 8004B344 24020002 */ addiu $v0, $zero, 2
|
|
/* 26748 8004B348 14820024 */ bne $a0, $v0, .L8004B3DC
|
|
/* 2674C 8004B34C 00000000 */ nop
|
|
/* 26750 8004B350 0C015B54 */ jal func_80056D50
|
|
/* 26754 8004B354 00000000 */ nop
|
|
/* 26758 8004B358 3C01800A */ lui $at, %hi(D_800A0F50)
|
|
/* 2675C 8004B35C 0C015B4D */ jal func_80056D34
|
|
/* 26760 8004B360 A4220F50 */ sh $v0, %lo(D_800A0F50)($at)
|
|
/* 26764 8004B364 08012CF7 */ j .L8004B3DC
|
|
/* 26768 8004B368 00000000 */ nop
|
|
.L8004B36C:
|
|
/* 2676C 8004B36C 3C026666 */ lui $v0, 0x6666
|
|
/* 26770 8004B370 3C03800A */ lui $v1, %hi(D_800A0F50)
|
|
/* 26774 8004B374 94630F50 */ lhu $v1, %lo(D_800A0F50)($v1)
|
|
/* 26778 8004B378 34426667 */ ori $v0, $v0, 0x6667
|
|
/* 2677C 8004B37C 00031C00 */ sll $v1, $v1, 0x10
|
|
/* 26780 8004B380 00032403 */ sra $a0, $v1, 0x10
|
|
/* 26784 8004B384 00820018 */ mult $a0, $v0
|
|
/* 26788 8004B388 00031FC3 */ sra $v1, $v1, 0x1f
|
|
/* 2678C 8004B38C 00003810 */ mfhi $a3
|
|
/* 26790 8004B390 000710C3 */ sra $v0, $a3, 3
|
|
/* 26794 8004B394 00431023 */ subu $v0, $v0, $v1
|
|
/* 26798 8004B398 00021400 */ sll $v0, $v0, 0x10
|
|
/* 2679C 8004B39C 00021403 */ sra $v0, $v0, 0x10
|
|
/* 267A0 8004B3A0 00450018 */ mult $v0, $a1
|
|
/* 267A4 8004B3A4 00001812 */ mflo $v1
|
|
/* 267A8 8004B3A8 00838023 */ subu $s0, $a0, $v1
|
|
/* 267AC 8004B3AC 06020001 */ bltzl $s0, .L8004B3B4
|
|
/* 267B0 8004B3B0 0000802D */ daddu $s0, $zero, $zero
|
|
.L8004B3B4:
|
|
/* 267B4 8004B3B4 02100018 */ mult $s0, $s0
|
|
/* 267B8 8004B3B8 00003012 */ mflo $a2
|
|
/* 267BC 8004B3BC 000683C3 */ sra $s0, $a2, 0xf
|
|
/* 267C0 8004B3C0 00102400 */ sll $a0, $s0, 0x10
|
|
/* 267C4 8004B3C4 0C015B51 */ jal func_80056D44
|
|
/* 267C8 8004B3C8 00042403 */ sra $a0, $a0, 0x10
|
|
/* 267CC 8004B3CC 16000003 */ bnez $s0, .L8004B3DC
|
|
/* 267D0 8004B3D0 00000000 */ nop
|
|
/* 267D4 8004B3D4 3C018008 */ lui $at, %hi(nuAuTaskStop)
|
|
/* 267D8 8004B3D8 A0208180 */ sb $zero, %lo(nuAuTaskStop)($at)
|
|
.L8004B3DC:
|
|
/* 267DC 8004B3DC 8FBF0014 */ lw $ra, 0x14($sp)
|
|
/* 267E0 8004B3E0 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 267E4 8004B3E4 03E00008 */ jr $ra
|
|
/* 267E8 8004B3E8 27BD0018 */ addiu $sp, $sp, 0x18
|