mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 04:52:34 +01:00
a4e1c2f522
* fix vscode cpp extension messing with files.associations * move stuff * it builds! * symlink papermario.us.z64 * ci: put baserom in right place * add jp * fix splat dir * ignore starrod dump * .s deps * update jenkins * add dsl back * configure.py versions * wups * fine ethan * fix paths * configure: default to only the version(s) with existing baseroms * fix coverage * fix progress.py * progress.py verisoning * remove format.sh from CONTRIBUTING * update CONTRIBUTING * fix first_diff * diff.py: use ver/current/ * update splat.yaml * trying to fix subrepo * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "06a737f02d" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "06a737f02d" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * configure fix * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "41786effd3" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "41786effd3" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Ethan Roseman <ethteck@gmail.com>
41 lines
2.0 KiB
ArmAsm
41 lines
2.0 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel SetModelFlags
|
|
/* EDEC8 802C9518 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* EDECC 802C951C AFB00010 */ sw $s0, 0x10($sp)
|
|
/* EDED0 802C9520 0080802D */ daddu $s0, $a0, $zero
|
|
/* EDED4 802C9524 AFBF0018 */ sw $ra, 0x18($sp)
|
|
/* EDED8 802C9528 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* EDEDC 802C952C 8E11000C */ lw $s1, 0xc($s0)
|
|
/* EDEE0 802C9530 8E250000 */ lw $a1, ($s1)
|
|
/* EDEE4 802C9534 0C0B1EAF */ jal get_variable
|
|
/* EDEE8 802C9538 26310004 */ addiu $s1, $s1, 4
|
|
/* EDEEC 802C953C 0C046C04 */ jal get_model_list_index_from_tree_index
|
|
/* EDEF0 802C9540 0040202D */ daddu $a0, $v0, $zero
|
|
/* EDEF4 802C9544 0200202D */ daddu $a0, $s0, $zero
|
|
/* EDEF8 802C9548 8E250004 */ lw $a1, 4($s1)
|
|
/* EDEFC 802C954C 8E310000 */ lw $s1, ($s1)
|
|
/* EDF00 802C9550 0C0B1EAF */ jal get_variable
|
|
/* EDF04 802C9554 0040802D */ daddu $s0, $v0, $zero
|
|
/* EDF08 802C9558 0200202D */ daddu $a0, $s0, $zero
|
|
/* EDF0C 802C955C 0C046B4C */ jal get_model_from_list_index
|
|
/* EDF10 802C9560 0040802D */ daddu $s0, $v0, $zero
|
|
/* EDF14 802C9564 12000004 */ beqz $s0, .L802C9578
|
|
/* EDF18 802C9568 0040202D */ daddu $a0, $v0, $zero
|
|
/* EDF1C 802C956C 94820000 */ lhu $v0, ($a0)
|
|
/* EDF20 802C9570 080B2561 */ j .L802C9584
|
|
/* EDF24 802C9574 00511025 */ or $v0, $v0, $s1
|
|
.L802C9578:
|
|
/* EDF28 802C9578 94820000 */ lhu $v0, ($a0)
|
|
/* EDF2C 802C957C 00111827 */ nor $v1, $zero, $s1
|
|
/* EDF30 802C9580 00431024 */ and $v0, $v0, $v1
|
|
.L802C9584:
|
|
/* EDF34 802C9584 A4820000 */ sh $v0, ($a0)
|
|
/* EDF38 802C9588 8FBF0018 */ lw $ra, 0x18($sp)
|
|
/* EDF3C 802C958C 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* EDF40 802C9590 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* EDF44 802C9594 24020002 */ addiu $v0, $zero, 2
|
|
/* EDF48 802C9598 03E00008 */ jr $ra
|
|
/* EDF4C 802C959C 27BD0020 */ addiu $sp, $sp, 0x20
|