papermario/asm/nonmatchings/os/code_41640_len_50/osYieldThread.s
2020-08-12 22:37:16 -04:00

29 lines
1.1 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osYieldThread
/* 041640 80066240 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 041644 80066244 AFBF0014 */ sw $ra, 0x14($sp)
/* 041648 80066248 0C01ACD8 */ jal __osDisableInt
/* 04164C 8006624C AFB00010 */ sw $s0, 0x10($sp)
/* 041650 80066250 3C038009 */ lui $v1, 0x8009
/* 041654 80066254 8C634660 */ lw $v1, 0x4660($v1)
/* 041658 80066258 3C048009 */ lui $a0, 0x8009
/* 04165C 8006625C 24844658 */ addiu $a0, $a0, 0x4658
/* 041660 80066260 24050002 */ addiu $a1, $zero, 2
/* 041664 80066264 00408021 */ addu $s0, $v0, $zero
/* 041668 80066268 0C01AC1B */ jal osEnqueueAndYield
/* 04166C 8006626C A4650010 */ sh $a1, 0x10($v1)
/* 041670 80066270 0C01ACF4 */ jal __osRestoreInt
/* 041674 80066274 02002021 */ addu $a0, $s0, $zero
/* 041678 80066278 8FBF0014 */ lw $ra, 0x14($sp)
/* 04167C 8006627C 8FB00010 */ lw $s0, 0x10($sp)
/* 041680 80066280 03E00008 */ jr $ra
/* 041684 80066284 27BD0018 */ addiu $sp, $sp, 0x18
/* 041688 80066288 00000000 */ nop
/* 04168C 8006628C 00000000 */ nop