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>
52 lines
2.4 KiB
ArmAsm
52 lines
2.4 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_80058DD0
|
|
/* 341D0 80058DD0 24050007 */ addiu $a1, $zero, 7
|
|
/* 341D4 80058DD4 2486000E */ addiu $a2, $a0, 0xe
|
|
/* 341D8 80058DD8 84830000 */ lh $v1, ($a0)
|
|
/* 341DC 80058DDC 24020001 */ addiu $v0, $zero, 1
|
|
/* 341E0 80058DE0 AC82002C */ sw $v0, 0x2c($a0)
|
|
/* 341E4 80058DE4 00431807 */ srav $v1, $v1, $v0
|
|
/* 341E8 80058DE8 0060382D */ daddu $a3, $v1, $zero
|
|
/* 341EC 80058DEC 24024000 */ addiu $v0, $zero, 0x4000
|
|
/* 341F0 80058DF0 00431023 */ subu $v0, $v0, $v1
|
|
/* 341F4 80058DF4 A4820002 */ sh $v0, 2($a0)
|
|
.L80058DF8:
|
|
/* 341F8 80058DF8 A4C00008 */ sh $zero, 8($a2)
|
|
/* 341FC 80058DFC 24A5FFFF */ addiu $a1, $a1, -1
|
|
/* 34200 80058E00 04A1FFFD */ bgez $a1, .L80058DF8
|
|
/* 34204 80058E04 24C6FFFE */ addiu $a2, $a2, -2
|
|
/* 34208 80058E08 00071400 */ sll $v0, $a3, 0x10
|
|
/* 3420C 80058E0C 00021403 */ sra $v0, $v0, 0x10
|
|
/* 34210 80058E10 3C013F10 */ lui $at, 0x3f10
|
|
/* 34214 80058E14 44811800 */ mtc1 $at, $f3
|
|
/* 34218 80058E18 44801000 */ mtc1 $zero, $f2
|
|
/* 3421C 80058E1C 44820000 */ mtc1 $v0, $f0
|
|
/* 34220 80058E20 00000000 */ nop
|
|
/* 34224 80058E24 46800021 */ cvt.d.w $f0, $f0
|
|
/* 34228 80058E28 46220082 */ mul.d $f2, $f0, $f2
|
|
/* 3422C 80058E2C 00000000 */ nop
|
|
/* 34230 80058E30 24050009 */ addiu $a1, $zero, 9
|
|
/* 34234 80058E34 3C0140D0 */ lui $at, 0x40d0
|
|
/* 34238 80058E38 44813800 */ mtc1 $at, $f7
|
|
/* 3423C 80058E3C 44803000 */ mtc1 $zero, $f6
|
|
/* 34240 80058E40 24830012 */ addiu $v1, $a0, 0x12
|
|
/* 34244 80058E44 A4870018 */ sh $a3, 0x18($a0)
|
|
/* 34248 80058E48 46201106 */ mov.d $f4, $f2
|
|
.L80058E4C:
|
|
/* 3424C 80058E4C 46241082 */ mul.d $f2, $f2, $f4
|
|
/* 34250 80058E50 00000000 */ nop
|
|
/* 34254 80058E54 46261002 */ mul.d $f0, $f2, $f6
|
|
/* 34258 80058E58 00000000 */ nop
|
|
/* 3425C 80058E5C 24A50001 */ addiu $a1, $a1, 1
|
|
/* 34260 80058E60 4620020D */ trunc.w.d $f8, $f0
|
|
/* 34264 80058E64 44024000 */ mfc1 $v0, $f8
|
|
/* 34268 80058E68 00000000 */ nop
|
|
/* 3426C 80058E6C A4620008 */ sh $v0, 8($v1)
|
|
/* 34270 80058E70 28A20010 */ slti $v0, $a1, 0x10
|
|
/* 34274 80058E74 1440FFF5 */ bnez $v0, .L80058E4C
|
|
/* 34278 80058E78 24630002 */ addiu $v1, $v1, 2
|
|
/* 3427C 80058E7C 03E00008 */ jr $ra
|
|
/* 34280 80058E80 00000000 */ nop
|