mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +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>
72 lines
3.6 KiB
ArmAsm
72 lines
3.6 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_800528A8
|
|
/* 2DCA8 800528A8 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
/* 2DCAC 800528AC AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 2DCB0 800528B0 0080802D */ daddu $s0, $a0, $zero
|
|
/* 2DCB4 800528B4 AFBF0014 */ sw $ra, 0x14($sp)
|
|
/* 2DCB8 800528B8 8CA20000 */ lw $v0, ($a1)
|
|
/* 2DCBC 800528BC AE020014 */ sw $v0, 0x14($s0)
|
|
/* 2DCC0 800528C0 AE02001C */ sw $v0, 0x1c($s0)
|
|
/* 2DCC4 800528C4 8CA30004 */ lw $v1, 4($a1)
|
|
/* 2DCC8 800528C8 24020080 */ addiu $v0, $zero, 0x80
|
|
/* 2DCCC 800528CC AE020030 */ sw $v0, 0x30($s0)
|
|
/* 2DCD0 800528D0 AE000034 */ sw $zero, 0x34($s0)
|
|
/* 2DCD4 800528D4 0C014A6B */ jal func_800529AC
|
|
/* 2DCD8 800528D8 AE030018 */ sw $v1, 0x18($s0)
|
|
/* 2DCDC 800528DC 8E03001C */ lw $v1, 0x1c($s0)
|
|
/* 2DCE0 800528E0 A200003D */ sb $zero, 0x3d($s0)
|
|
/* 2DCE4 800528E4 A2000039 */ sb $zero, 0x39($s0)
|
|
/* 2DCE8 800528E8 90640000 */ lbu $a0, ($v1)
|
|
/* 2DCEC 800528EC 24630001 */ addiu $v1, $v1, 1
|
|
/* 2DCF0 800528F0 AE03001C */ sw $v1, 0x1c($s0)
|
|
/* 2DCF4 800528F4 86030040 */ lh $v1, 0x40($s0)
|
|
/* 2DCF8 800528F8 A204003A */ sb $a0, 0x3a($s0)
|
|
/* 2DCFC 800528FC 308400FF */ andi $a0, $a0, 0xff
|
|
/* 2DD00 80052900 00830018 */ mult $a0, $v1
|
|
/* 2DD04 80052904 304200FF */ andi $v0, $v0, 0xff
|
|
/* 2DD08 80052908 A202003B */ sb $v0, 0x3b($s0)
|
|
/* 2DD0C 8005290C 00021080 */ sll $v0, $v0, 2
|
|
/* 2DD10 80052910 00003012 */ mflo $a2
|
|
/* 2DD14 80052914 8E030030 */ lw $v1, 0x30($s0)
|
|
/* 2DD18 80052918 3C018008 */ lui $at, %hi(D_80078570)
|
|
/* 2DD1C 8005291C 00220821 */ addu $at, $at, $v0
|
|
/* 2DD20 80052920 8C228570 */ lw $v0, %lo(D_80078570)($at)
|
|
/* 2DD24 80052924 00C30018 */ mult $a2, $v1
|
|
/* 2DD28 80052928 AE020024 */ sw $v0, 0x24($s0)
|
|
/* 2DD2C 8005292C 0040202D */ daddu $a0, $v0, $zero
|
|
/* 2DD30 80052930 AE020028 */ sw $v0, 0x28($s0)
|
|
/* 2DD34 80052934 00003012 */ mflo $a2
|
|
/* 2DD38 80052938 00061383 */ sra $v0, $a2, 0xe
|
|
/* 2DD3C 8005293C 0C014A1C */ jal func_80052870
|
|
/* 2DD40 80052940 A602000C */ sh $v0, 0xc($s0)
|
|
/* 2DD44 80052944 8E040024 */ lw $a0, 0x24($s0)
|
|
/* 2DD48 80052948 10800010 */ beqz $a0, .L8005298C
|
|
/* 2DD4C 8005294C AE020008 */ sw $v0, 8($s0)
|
|
/* 2DD50 80052950 9202003A */ lbu $v0, 0x3a($s0)
|
|
/* 2DD54 80052954 92030039 */ lbu $v1, 0x39($s0)
|
|
/* 2DD58 80052958 44820000 */ mtc1 $v0, $f0
|
|
/* 2DD5C 8005295C 00000000 */ nop
|
|
/* 2DD60 80052960 46800020 */ cvt.s.w $f0, $f0
|
|
/* 2DD64 80052964 44831000 */ mtc1 $v1, $f2
|
|
/* 2DD68 80052968 00000000 */ nop
|
|
/* 2DD6C 8005296C 468010A0 */ cvt.s.w $f2, $f2
|
|
/* 2DD70 80052970 46020001 */ sub.s $f0, $f0, $f2
|
|
/* 2DD74 80052974 44841000 */ mtc1 $a0, $f2
|
|
/* 2DD78 80052978 00000000 */ nop
|
|
/* 2DD7C 8005297C 468010A0 */ cvt.s.w $f2, $f2
|
|
/* 2DD80 80052980 46020003 */ div.s $f0, $f0, $f2
|
|
/* 2DD84 80052984 08014A64 */ j .L80052990
|
|
/* 2DD88 80052988 E600002C */ swc1 $f0, 0x2c($s0)
|
|
.L8005298C:
|
|
/* 2DD8C 8005298C AE00002C */ sw $zero, 0x2c($s0)
|
|
.L80052990:
|
|
/* 2DD90 80052990 24020080 */ addiu $v0, $zero, 0x80
|
|
/* 2DD94 80052994 A200003E */ sb $zero, 0x3e($s0)
|
|
/* 2DD98 80052998 A202003F */ sb $v0, 0x3f($s0)
|
|
/* 2DD9C 8005299C 8FBF0014 */ lw $ra, 0x14($sp)
|
|
/* 2DDA0 800529A0 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 2DDA4 800529A4 03E00008 */ jr $ra
|
|
/* 2DDA8 800529A8 27BD0018 */ addiu $sp, $sp, 0x18
|