mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +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>
115 lines
5.9 KiB
ArmAsm
115 lines
5.9 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_800571F8
|
|
/* 325F8 800571F8 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
/* 325FC 800571FC AFB20018 */ sw $s2, 0x18($sp)
|
|
/* 32600 80057200 00A0902D */ daddu $s2, $a1, $zero
|
|
/* 32604 80057204 AFB3001C */ sw $s3, 0x1c($sp)
|
|
/* 32608 80057208 00C0982D */ daddu $s3, $a2, $zero
|
|
/* 3260C 8005720C 308400FF */ andi $a0, $a0, 0xff
|
|
/* 32610 80057210 00041140 */ sll $v0, $a0, 5
|
|
/* 32614 80057214 3C038008 */ lui $v1, %hi(D_80078E24)
|
|
/* 32618 80057218 8C638E24 */ lw $v1, %lo(D_80078E24)($v1)
|
|
/* 3261C 8005721C 00441023 */ subu $v0, $v0, $a0
|
|
/* 32620 80057220 AFBF0020 */ sw $ra, 0x20($sp)
|
|
/* 32624 80057224 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 32628 80057228 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 3262C 8005722C 8C63001C */ lw $v1, 0x1c($v1)
|
|
/* 32630 80057230 00021080 */ sll $v0, $v0, 2
|
|
/* 32634 80057234 00628021 */ addu $s0, $v1, $v0
|
|
/* 32638 80057238 8E050064 */ lw $a1, 0x64($s0)
|
|
/* 3263C 8005723C 8E030068 */ lw $v1, 0x68($s0)
|
|
/* 32640 80057240 00A3102A */ slt $v0, $a1, $v1
|
|
/* 32644 80057244 14400029 */ bnez $v0, .L800572EC
|
|
/* 32648 80057248 26110048 */ addiu $s1, $s0, 0x48
|
|
/* 3264C 8005724C 3C028008 */ lui $v0, %hi(D_80078151)
|
|
/* 32650 80057250 24428151 */ addiu $v0, $v0, %lo(D_80078151)
|
|
/* 32654 80057254 90420000 */ lbu $v0, ($v0)
|
|
/* 32658 80057258 1440000E */ bnez $v0, .L80057294
|
|
/* 3265C 8005725C AE030064 */ sw $v1, 0x64($s0)
|
|
/* 32660 80057260 3C048008 */ lui $a0, %hi(D_80078E30)
|
|
/* 32664 80057264 24848E30 */ addiu $a0, $a0, %lo(D_80078E30)
|
|
/* 32668 80057268 8603004E */ lh $v1, 0x4e($s0)
|
|
/* 3266C 8005726C 84820080 */ lh $v0, 0x80($a0)
|
|
/* 32670 80057270 00620018 */ mult $v1, $v0
|
|
/* 32674 80057274 00004012 */ mflo $t0
|
|
/* 32678 80057278 000813C3 */ sra $v0, $t0, 0xf
|
|
/* 3267C 8005727C A6020050 */ sh $v0, 0x50($s0)
|
|
/* 32680 80057280 84820080 */ lh $v0, 0x80($a0)
|
|
/* 32684 80057284 00620018 */ mult $v1, $v0
|
|
/* 32688 80057288 00004012 */ mflo $t0
|
|
/* 3268C 8005728C 08015CC5 */ j .L80057314
|
|
/* 32690 80057290 000813C3 */ sra $v0, $t0, 0xf
|
|
.L80057294:
|
|
/* 32694 80057294 8602004C */ lh $v0, 0x4c($s0)
|
|
/* 32698 80057298 8603004E */ lh $v1, 0x4e($s0)
|
|
/* 3269C 8005729C 00021040 */ sll $v0, $v0, 1
|
|
/* 326A0 800572A0 3C018008 */ lui $at, %hi(D_80078E30)
|
|
/* 326A4 800572A4 00220821 */ addu $at, $at, $v0
|
|
/* 326A8 800572A8 84228E30 */ lh $v0, %lo(D_80078E30)($at)
|
|
/* 326AC 800572AC 00620018 */ mult $v1, $v0
|
|
/* 326B0 800572B0 8603004C */ lh $v1, 0x4c($s0)
|
|
/* 326B4 800572B4 00004012 */ mflo $t0
|
|
/* 326B8 800572B8 000813C3 */ sra $v0, $t0, 0xf
|
|
/* 326BC 800572BC A6020050 */ sh $v0, 0x50($s0)
|
|
/* 326C0 800572C0 2402007F */ addiu $v0, $zero, 0x7f
|
|
/* 326C4 800572C4 00431023 */ subu $v0, $v0, $v1
|
|
/* 326C8 800572C8 00021040 */ sll $v0, $v0, 1
|
|
/* 326CC 800572CC 8603004E */ lh $v1, 0x4e($s0)
|
|
/* 326D0 800572D0 3C018008 */ lui $at, %hi(D_80078E30)
|
|
/* 326D4 800572D4 00220821 */ addu $at, $at, $v0
|
|
/* 326D8 800572D8 84228E30 */ lh $v0, %lo(D_80078E30)($at)
|
|
/* 326DC 800572DC 00620018 */ mult $v1, $v0
|
|
/* 326E0 800572E0 00004012 */ mflo $t0
|
|
/* 326E4 800572E4 08015CC5 */ j .L80057314
|
|
/* 326E8 800572E8 000813C3 */ sra $v0, $t0, 0xf
|
|
.L800572EC:
|
|
/* 326EC 800572EC 86040050 */ lh $a0, 0x50($s0)
|
|
/* 326F0 800572F0 8606005A */ lh $a2, 0x5a($s0)
|
|
/* 326F4 800572F4 0C015F2D */ jal func_80057CB4
|
|
/* 326F8 800572F8 96070058 */ lhu $a3, 0x58($s0)
|
|
/* 326FC 800572FC 86040052 */ lh $a0, 0x52($s0)
|
|
/* 32700 80057300 8E050064 */ lw $a1, 0x64($s0)
|
|
/* 32704 80057304 86060060 */ lh $a2, 0x60($s0)
|
|
/* 32708 80057308 9607005E */ lhu $a3, 0x5e($s0)
|
|
/* 3270C 8005730C 0C015F2D */ jal func_80057CB4
|
|
/* 32710 80057310 A6020050 */ sh $v0, 0x50($s0)
|
|
.L80057314:
|
|
/* 32714 80057314 A6020052 */ sh $v0, 0x52($s0)
|
|
/* 32718 80057318 86220008 */ lh $v0, 8($s1)
|
|
/* 3271C 8005731C 14400002 */ bnez $v0, .L80057328
|
|
/* 32720 80057320 24020001 */ addiu $v0, $zero, 1
|
|
/* 32724 80057324 A6220008 */ sh $v0, 8($s1)
|
|
.L80057328:
|
|
/* 32728 80057328 8622000A */ lh $v0, 0xa($s1)
|
|
/* 3272C 8005732C 14400004 */ bnez $v0, .L80057340
|
|
/* 32730 80057330 324200FF */ andi $v0, $s2, 0xff
|
|
/* 32734 80057334 24020001 */ addiu $v0, $zero, 1
|
|
/* 32738 80057338 A622000A */ sh $v0, 0xa($s1)
|
|
/* 3273C 8005733C 324200FF */ andi $v0, $s2, 0xff
|
|
.L80057340:
|
|
/* 32740 80057340 326300FF */ andi $v1, $s3, 0xff
|
|
/* 32744 80057344 A6220004 */ sh $v0, 4($s1)
|
|
/* 32748 80057348 00031040 */ sll $v0, $v1, 1
|
|
/* 3274C 8005734C 3C018008 */ lui $at, %hi(D_80078E30)
|
|
/* 32750 80057350 00220821 */ addu $at, $at, $v0
|
|
/* 32754 80057354 94228E30 */ lhu $v0, %lo(D_80078E30)($at)
|
|
/* 32758 80057358 A622000C */ sh $v0, 0xc($s1)
|
|
/* 3275C 8005735C 2402007F */ addiu $v0, $zero, 0x7f
|
|
/* 32760 80057360 00431023 */ subu $v0, $v0, $v1
|
|
/* 32764 80057364 00021040 */ sll $v0, $v0, 1
|
|
/* 32768 80057368 3C038008 */ lui $v1, %hi(D_80078E30)
|
|
/* 3276C 8005736C 00621821 */ addu $v1, $v1, $v0
|
|
/* 32770 80057370 94638E30 */ lhu $v1, %lo(D_80078E30)($v1)
|
|
/* 32774 80057374 24020001 */ addiu $v0, $zero, 1
|
|
/* 32778 80057378 AE220024 */ sw $v0, 0x24($s1)
|
|
/* 3277C 8005737C A623000E */ sh $v1, 0xe($s1)
|
|
/* 32780 80057380 8FBF0020 */ lw $ra, 0x20($sp)
|
|
/* 32784 80057384 8FB3001C */ lw $s3, 0x1c($sp)
|
|
/* 32788 80057388 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* 3278C 8005738C 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 32790 80057390 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 32794 80057394 03E00008 */ jr $ra
|
|
/* 32798 80057398 27BD0028 */ addiu $sp, $sp, 0x28
|