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>
60 lines
2.6 KiB
ArmAsm
60 lines
2.6 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel snd_memset
|
|
/* 30290 80054E90 10A0000A */ beqz $a1, .L80054EBC
|
|
/* 30294 80054E94 28A20400 */ slti $v0, $a1, 0x400
|
|
/* 30298 80054E98 1040000A */ beqz $v0, .L80054EC4
|
|
/* 3029C 80054E9C 00A0102D */ daddu $v0, $a1, $zero
|
|
/* 302A0 80054EA0 10400006 */ beqz $v0, .L80054EBC
|
|
/* 302A4 80054EA4 24A5FFFF */ addiu $a1, $a1, -1
|
|
.L80054EA8:
|
|
/* 302A8 80054EA8 A0860000 */ sb $a2, ($a0)
|
|
/* 302AC 80054EAC 24840001 */ addiu $a0, $a0, 1
|
|
/* 302B0 80054EB0 00A0102D */ daddu $v0, $a1, $zero
|
|
/* 302B4 80054EB4 1440FFFC */ bnez $v0, .L80054EA8
|
|
/* 302B8 80054EB8 24A5FFFF */ addiu $a1, $a1, -1
|
|
.L80054EBC:
|
|
/* 302BC 80054EBC 03E00008 */ jr $ra
|
|
/* 302C0 80054EC0 00000000 */ nop
|
|
.L80054EC4:
|
|
/* 302C4 80054EC4 30870003 */ andi $a3, $a0, 3
|
|
/* 302C8 80054EC8 10E00009 */ beqz $a3, .L80054EF0
|
|
/* 302CC 80054ECC 24020004 */ addiu $v0, $zero, 4
|
|
/* 302D0 80054ED0 00473823 */ subu $a3, $v0, $a3
|
|
/* 302D4 80054ED4 080153B9 */ j .L80054EE4
|
|
/* 302D8 80054ED8 00A72823 */ subu $a1, $a1, $a3
|
|
.L80054EDC:
|
|
/* 302DC 80054EDC A0860000 */ sb $a2, ($a0)
|
|
/* 302E0 80054EE0 24840001 */ addiu $a0, $a0, 1
|
|
.L80054EE4:
|
|
/* 302E4 80054EE4 00E0102D */ daddu $v0, $a3, $zero
|
|
/* 302E8 80054EE8 1440FFFC */ bnez $v0, .L80054EDC
|
|
/* 302EC 80054EEC 24E7FFFF */ addiu $a3, $a3, -1
|
|
.L80054EF0:
|
|
/* 302F0 80054EF0 00053883 */ sra $a3, $a1, 2
|
|
/* 302F4 80054EF4 30C300FF */ andi $v1, $a2, 0xff
|
|
/* 302F8 80054EF8 00031200 */ sll $v0, $v1, 8
|
|
/* 302FC 80054EFC 00431821 */ addu $v1, $v0, $v1
|
|
/* 30300 80054F00 00031400 */ sll $v0, $v1, 0x10
|
|
/* 30304 80054F04 080153C5 */ j .L80054F14
|
|
/* 30308 80054F08 00621821 */ addu $v1, $v1, $v0
|
|
.L80054F0C:
|
|
/* 3030C 80054F0C AC830000 */ sw $v1, ($a0)
|
|
/* 30310 80054F10 24840004 */ addiu $a0, $a0, 4
|
|
.L80054F14:
|
|
/* 30314 80054F14 00E0102D */ daddu $v0, $a3, $zero
|
|
/* 30318 80054F18 1440FFFC */ bnez $v0, .L80054F0C
|
|
/* 3031C 80054F1C 24E7FFFF */ addiu $a3, $a3, -1
|
|
/* 30320 80054F20 30A70003 */ andi $a3, $a1, 3
|
|
/* 30324 80054F24 10E0FFE5 */ beqz $a3, .L80054EBC
|
|
/* 30328 80054F28 24E7FFFF */ addiu $a3, $a3, -1
|
|
.L80054F2C:
|
|
/* 3032C 80054F2C A0860000 */ sb $a2, ($a0)
|
|
/* 30330 80054F30 24840001 */ addiu $a0, $a0, 1
|
|
/* 30334 80054F34 00E0102D */ daddu $v0, $a3, $zero
|
|
/* 30338 80054F38 1440FFFC */ bnez $v0, .L80054F2C
|
|
/* 3033C 80054F3C 24E7FFFF */ addiu $a3, $a3, -1
|
|
/* 30340 80054F40 03E00008 */ jr $ra
|
|
/* 30344 80054F44 00000000 */ nop
|