mirror of
https://github.com/pmret/papermario.git
synced 2024-11-14 15:03:25 +01:00
647db26552
* . * yaml update * git subrepo pull --force tools/splat subrepo: subdir: "tools/splat" merged: "cd690f725d" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cd690f725d" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * separate main bss syms * renames and one match * SR symbol rename * fix symbol_addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "5fa8aa24ca" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "5fa8aa24ca" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * remove old artifacts
29 lines
1.5 KiB
ArmAsm
29 lines
1.5 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel spr_load_player_sprite
|
|
/* 10098C 802DD89C 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
/* 100990 802DD8A0 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 100994 802DD8A4 2490FFFF */ addiu $s0, $a0, -1
|
|
/* 100998 802DD8A8 0200202D */ daddu $a0, $s0, $zero
|
|
/* 10099C 802DD8AC 24050001 */ addiu $a1, $zero, 1
|
|
/* 1009A0 802DD8B0 AFBF0014 */ sw $ra, 0x14($sp)
|
|
/* 1009A4 802DD8B4 0C0B7AC3 */ jal spr_load_sprite
|
|
/* 1009A8 802DD8B8 0000302D */ daddu $a2, $zero, $zero
|
|
/* 1009AC 802DD8BC 00108080 */ sll $s0, $s0, 2
|
|
/* 1009B0 802DD8C0 3C04802E */ lui $a0, %hi(spr_playerMaxComponents)
|
|
/* 1009B4 802DD8C4 2484F580 */ addiu $a0, $a0, %lo(spr_playerMaxComponents)
|
|
/* 1009B8 802DD8C8 3C01802E */ lui $at, %hi(spr_playerSprites)
|
|
/* 1009BC 802DD8CC 00300821 */ addu $at, $at, $s0
|
|
/* 1009C0 802DD8D0 AC22F548 */ sw $v0, %lo(spr_playerSprites)($at)
|
|
/* 1009C4 802DD8D4 8C830000 */ lw $v1, ($a0)
|
|
/* 1009C8 802DD8D8 8C420008 */ lw $v0, 8($v0)
|
|
/* 1009CC 802DD8DC 0062182A */ slt $v1, $v1, $v0
|
|
/* 1009D0 802DD8E0 54600001 */ bnel $v1, $zero, .L802DD8E8
|
|
/* 1009D4 802DD8E4 AC820000 */ sw $v0, ($a0)
|
|
.L802DD8E8:
|
|
/* 1009D8 802DD8E8 8FBF0014 */ lw $ra, 0x14($sp)
|
|
/* 1009DC 802DD8EC 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 1009E0 802DD8F0 03E00008 */ jr $ra
|
|
/* 1009E4 802DD8F4 27BD0018 */ addiu $sp, $sp, 0x18
|