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>
35 lines
1.7 KiB
ArmAsm
35 lines
1.7 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel load_message_to_buffer
|
|
/* BBF8C 8012588C 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* BBF90 80125890 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* BBF94 80125894 3C118015 */ lui $s1, %hi(D_8014C296)
|
|
/* BBF98 80125898 2631C296 */ addiu $s1, $s1, %lo(D_8014C296)
|
|
/* BBF9C 8012589C AFBF0018 */ sw $ra, 0x18($sp)
|
|
/* BBFA0 801258A0 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* BBFA4 801258A4 86250000 */ lh $a1, ($s1)
|
|
/* BBFA8 801258A8 3C108015 */ lui $s0, %hi(D_80154430)
|
|
/* BBFAC 801258AC 26104430 */ addiu $s0, $s0, %lo(D_80154430)
|
|
/* BBFB0 801258B0 00052A80 */ sll $a1, $a1, 0xa
|
|
/* BBFB4 801258B4 0C049601 */ jal dma_load_string
|
|
/* BBFB8 801258B8 00B02821 */ addu $a1, $a1, $s0
|
|
/* BBFBC 801258BC 96220000 */ lhu $v0, ($s1)
|
|
/* BBFC0 801258C0 86230000 */ lh $v1, ($s1)
|
|
/* BBFC4 801258C4 24420001 */ addiu $v0, $v0, 1
|
|
/* BBFC8 801258C8 00031A80 */ sll $v1, $v1, 0xa
|
|
/* BBFCC 801258CC A6220000 */ sh $v0, ($s1)
|
|
/* BBFD0 801258D0 00021400 */ sll $v0, $v0, 0x10
|
|
/* BBFD4 801258D4 00021403 */ sra $v0, $v0, 0x10
|
|
/* BBFD8 801258D8 28420002 */ slti $v0, $v0, 2
|
|
/* BBFDC 801258DC 14400002 */ bnez $v0, .L801258E8
|
|
/* BBFE0 801258E0 00701821 */ addu $v1, $v1, $s0
|
|
/* BBFE4 801258E4 A6200000 */ sh $zero, ($s1)
|
|
.L801258E8:
|
|
/* BBFE8 801258E8 8FBF0018 */ lw $ra, 0x18($sp)
|
|
/* BBFEC 801258EC 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* BBFF0 801258F0 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* BBFF4 801258F4 0060102D */ daddu $v0, $v1, $zero
|
|
/* BBFF8 801258F8 03E00008 */ jr $ra
|
|
/* BBFFC 801258FC 27BD0020 */ addiu $sp, $sp, 0x20
|