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>
66 lines
3.5 KiB
ArmAsm
66 lines
3.5 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_802A9184_428BF4
|
|
/* 428BF4 802A9184 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* 428BF8 802A9188 AFB20018 */ sw $s2, 0x18($sp)
|
|
/* 428BFC 802A918C 0080902D */ daddu $s2, $a0, $zero
|
|
/* 428C00 802A9190 AFBF001C */ sw $ra, 0x1c($sp)
|
|
/* 428C04 802A9194 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 428C08 802A9198 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 428C0C 802A919C 0C09A216 */ jal func_80268858
|
|
/* 428C10 802A91A0 8E50000C */ lw $s0, 0xc($s2)
|
|
/* 428C14 802A91A4 0240202D */ daddu $a0, $s2, $zero
|
|
/* 428C18 802A91A8 8E050000 */ lw $a1, ($s0)
|
|
/* 428C1C 802A91AC 0C0B1EAF */ jal get_variable
|
|
/* 428C20 802A91B0 26100004 */ addiu $s0, $s0, 4
|
|
/* 428C24 802A91B4 3C11802A */ lui $s1, %hi(D_8029FBE0)
|
|
/* 428C28 802A91B8 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
|
|
/* 428C2C 802A91BC A622004E */ sh $v0, 0x4e($s1)
|
|
/* 428C30 802A91C0 8E050000 */ lw $a1, ($s0)
|
|
/* 428C34 802A91C4 26100004 */ addiu $s0, $s0, 4
|
|
/* 428C38 802A91C8 0C0B1EAF */ jal get_variable
|
|
/* 428C3C 802A91CC 0240202D */ daddu $a0, $s2, $zero
|
|
/* 428C40 802A91D0 A6220052 */ sh $v0, 0x52($s1)
|
|
/* 428C44 802A91D4 8E050000 */ lw $a1, ($s0)
|
|
/* 428C48 802A91D8 26100004 */ addiu $s0, $s0, 4
|
|
/* 428C4C 802A91DC 0C0B1EAF */ jal get_variable
|
|
/* 428C50 802A91E0 0240202D */ daddu $a0, $s2, $zero
|
|
/* 428C54 802A91E4 00022400 */ sll $a0, $v0, 0x10
|
|
/* 428C58 802A91E8 00042403 */ sra $a0, $a0, 0x10
|
|
/* 428C5C 802A91EC 0C09A089 */ jal func_80268224
|
|
/* 428C60 802A91F0 A6220050 */ sh $v0, 0x50($s1)
|
|
/* 428C64 802A91F4 A6220050 */ sh $v0, 0x50($s1)
|
|
/* 428C68 802A91F8 8E050000 */ lw $a1, ($s0)
|
|
/* 428C6C 802A91FC 0C0B1EAF */ jal get_variable
|
|
/* 428C70 802A9200 0240202D */ daddu $a0, $s2, $zero
|
|
/* 428C74 802A9204 3C05FFFF */ lui $a1, 0xffff
|
|
/* 428C78 802A9208 3C04800E */ lui $a0, %hi(gBattleStatus)
|
|
/* 428C7C 802A920C 2484C070 */ addiu $a0, $a0, %lo(gBattleStatus)
|
|
/* 428C80 802A9210 A6220064 */ sh $v0, 0x64($s1)
|
|
/* 428C84 802A9214 A2200060 */ sb $zero, 0x60($s1)
|
|
/* 428C88 802A9218 A0800081 */ sb $zero, 0x81($a0)
|
|
/* 428C8C 802A921C 82220080 */ lb $v0, 0x80($s1)
|
|
/* 428C90 802A9220 2403007F */ addiu $v1, $zero, 0x7f
|
|
/* 428C94 802A9224 A0830086 */ sb $v1, 0x86($a0)
|
|
/* 428C98 802A9228 2442FFFF */ addiu $v0, $v0, -1
|
|
/* 428C9C 802A922C 00021040 */ sll $v0, $v0, 1
|
|
/* 428CA0 802A9230 00511021 */ addu $v0, $v0, $s1
|
|
/* 428CA4 802A9234 90430075 */ lbu $v1, 0x75($v0)
|
|
/* 428CA8 802A9238 8C820000 */ lw $v0, ($a0)
|
|
/* 428CAC 802A923C 34A57FFF */ ori $a1, $a1, 0x7fff
|
|
/* 428CB0 802A9240 A220005C */ sb $zero, 0x5c($s1)
|
|
/* 428CB4 802A9244 00451024 */ and $v0, $v0, $a1
|
|
/* 428CB8 802A9248 AC820000 */ sw $v0, ($a0)
|
|
/* 428CBC 802A924C 2402000A */ addiu $v0, $zero, 0xa
|
|
/* 428CC0 802A9250 A622004C */ sh $v0, 0x4c($s1)
|
|
/* 428CC4 802A9254 0C09A446 */ jal func_80269118
|
|
/* 428CC8 802A9258 A0830082 */ sb $v1, 0x82($a0)
|
|
/* 428CCC 802A925C 8FBF001C */ lw $ra, 0x1c($sp)
|
|
/* 428CD0 802A9260 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* 428CD4 802A9264 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 428CD8 802A9268 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 428CDC 802A926C 24020002 */ addiu $v0, $zero, 2
|
|
/* 428CE0 802A9270 03E00008 */ jr $ra
|
|
/* 428CE4 802A9274 27BD0020 */ addiu $sp, $sp, 0x20
|