papermario/asm/nonmatchings/os/code_467f0_len_90/osSetGlobalIntMask.s
2020-08-12 21:56:23 -04:00

24 lines
984 B
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.include "include/macro.inc"
glabel osSetGlobalIntMask
/* 0467F0 8006B3F0 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 0467F4 8006B3F4 AFB00010 */ sw $s0, 0x10($sp)
/* 0467F8 8006B3F8 AFBF0014 */ sw $ra, 0x14($sp)
/* 0467FC 8006B3FC 0C01ACD8 */ jal __osDisableInt
/* 046800 8006B400 00808021 */ addu $s0, $a0, $zero
/* 046804 8006B404 3C038009 */ lui $v1, 0x8009
/* 046808 8006B408 8C635900 */ lw $v1, 0x5900($v1)
/* 04680C 8006B40C 00701825 */ or $v1, $v1, $s0
/* 046810 8006B410 3C018009 */ lui $at, 0x8009
/* 046814 8006B414 AC235900 */ sw $v1, 0x5900($at)
/* 046818 8006B418 0C01ACF4 */ jal __osRestoreInt
/* 04681C 8006B41C 00402021 */ addu $a0, $v0, $zero
/* 046820 8006B420 8FBF0014 */ lw $ra, 0x14($sp)
/* 046824 8006B424 8FB00010 */ lw $s0, 0x10($sp)
/* 046828 8006B428 03E00008 */ jr $ra
/* 04682C 8006B42C 27BD0018 */ addiu $sp, $sp, 0x18