mirror of
https://github.com/pmret/papermario.git
synced 2024-11-19 01:12:28 +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>
76 lines
3.3 KiB
ArmAsm
76 lines
3.3 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_80029AE4
|
|
/* 4EE4 80029AE4 3C014561 */ lui $at, 0x4561
|
|
/* 4EE8 80029AE8 44811000 */ mtc1 $at, $f2
|
|
/* 4EEC 80029AEC 46006005 */ abs.s $f0, $f12
|
|
/* 4EF0 80029AF0 4600103C */ c.lt.s $f2, $f0
|
|
/* 4EF4 80029AF4 00000000 */ nop
|
|
/* 4EF8 80029AF8 45000026 */ bc1f .L80029B94
|
|
/* 4EFC 80029AFC 00000000 */ nop
|
|
/* 4F00 80029B00 4600610D */ trunc.w.s $f4, $f12
|
|
/* 4F04 80029B04 44042000 */ mfc1 $a0, $f4
|
|
/* 4F08 80029B08 00000000 */ nop
|
|
/* 4F0C 80029B0C 0480000F */ bltz $a0, .L80029B4C
|
|
/* 4F10 80029B10 3C02B60B */ lui $v0, 0xb60b
|
|
/* 4F14 80029B14 344260B7 */ ori $v0, $v0, 0x60b7
|
|
/* 4F18 80029B18 00820018 */ mult $a0, $v0
|
|
/* 4F1C 80029B1C 00041FC3 */ sra $v1, $a0, 0x1f
|
|
/* 4F20 80029B20 00002810 */ mfhi $a1
|
|
/* 4F24 80029B24 00A41021 */ addu $v0, $a1, $a0
|
|
/* 4F28 80029B28 00021203 */ sra $v0, $v0, 8
|
|
/* 4F2C 80029B2C 00431023 */ subu $v0, $v0, $v1
|
|
/* 4F30 80029B30 00021840 */ sll $v1, $v0, 1
|
|
/* 4F34 80029B34 00621821 */ addu $v1, $v1, $v0
|
|
/* 4F38 80029B38 00031100 */ sll $v0, $v1, 4
|
|
/* 4F3C 80029B3C 00431023 */ subu $v0, $v0, $v1
|
|
/* 4F40 80029B40 000210C0 */ sll $v0, $v0, 3
|
|
/* 4F44 80029B44 0800A6E1 */ j .L80029B84
|
|
/* 4F48 80029B48 00822023 */ subu $a0, $a0, $v0
|
|
.L80029B4C:
|
|
/* 4F4C 80029B4C 00042023 */ negu $a0, $a0
|
|
/* 4F50 80029B50 344260B7 */ ori $v0, $v0, 0x60b7
|
|
/* 4F54 80029B54 00820018 */ mult $a0, $v0
|
|
/* 4F58 80029B58 00041FC3 */ sra $v1, $a0, 0x1f
|
|
/* 4F5C 80029B5C 00002810 */ mfhi $a1
|
|
/* 4F60 80029B60 00A41021 */ addu $v0, $a1, $a0
|
|
/* 4F64 80029B64 00021203 */ sra $v0, $v0, 8
|
|
/* 4F68 80029B68 00431023 */ subu $v0, $v0, $v1
|
|
/* 4F6C 80029B6C 00021840 */ sll $v1, $v0, 1
|
|
/* 4F70 80029B70 00621821 */ addu $v1, $v1, $v0
|
|
/* 4F74 80029B74 00031100 */ sll $v0, $v1, 4
|
|
/* 4F78 80029B78 00431023 */ subu $v0, $v0, $v1
|
|
/* 4F7C 80029B7C 000210C0 */ sll $v0, $v0, 3
|
|
/* 4F80 80029B80 00442023 */ subu $a0, $v0, $a0
|
|
.L80029B84:
|
|
/* 4F84 80029B84 44840000 */ mtc1 $a0, $f0
|
|
/* 4F88 80029B88 00000000 */ nop
|
|
/* 4F8C 80029B8C 03E00008 */ jr $ra
|
|
/* 4F90 80029B90 46800020 */ cvt.s.w $f0, $f0
|
|
.L80029B94:
|
|
/* 4F94 80029B94 44801000 */ mtc1 $zero, $f2
|
|
/* 4F98 80029B98 3C0143B4 */ lui $at, 0x43b4
|
|
/* 4F9C 80029B9C 44810000 */ mtc1 $at, $f0
|
|
.L80029BA0:
|
|
/* 4FA0 80029BA0 4602603C */ c.lt.s $f12, $f2
|
|
/* 4FA4 80029BA4 00000000 */ nop
|
|
/* 4FA8 80029BA8 45030001 */ bc1tl .L80029BB0
|
|
/* 4FAC 80029BAC 46006300 */ add.s $f12, $f12, $f0
|
|
.L80029BB0:
|
|
/* 4FB0 80029BB0 460C003E */ c.le.s $f0, $f12
|
|
/* 4FB4 80029BB4 00000000 */ nop
|
|
/* 4FB8 80029BB8 45030001 */ bc1tl .L80029BC0
|
|
/* 4FBC 80029BBC 46006301 */ sub.s $f12, $f12, $f0
|
|
.L80029BC0:
|
|
/* 4FC0 80029BC0 460C103E */ c.le.s $f2, $f12
|
|
/* 4FC4 80029BC4 00000000 */ nop
|
|
/* 4FC8 80029BC8 4500FFF5 */ bc1f .L80029BA0
|
|
/* 4FCC 80029BCC 00000000 */ nop
|
|
/* 4FD0 80029BD0 4600603C */ c.lt.s $f12, $f0
|
|
/* 4FD4 80029BD4 00000000 */ nop
|
|
/* 4FD8 80029BD8 4500FFF1 */ bc1f .L80029BA0
|
|
/* 4FDC 80029BDC 00000000 */ nop
|
|
/* 4FE0 80029BE0 03E00008 */ jr $ra
|
|
/* 4FE4 80029BE4 46006006 */ mov.s $f0, $f12
|