sm64/lib/asm/__osDisableInt.s

19 lines
233 B
ArmAsm
Raw Normal View History

2021-07-12 23:17:54 -04:00
.set noreorder // don't insert nops after branches
2019-08-25 00:46:40 -04:00
.set gp=64
2021-07-12 23:17:54 -04:00
#include "macros.inc"
2019-08-25 00:46:40 -04:00
.section .text, "ax"
glabel __osDisableInt
mfc0 $t0, $12
and $t1, $t0, -2
mtc0 $t1, $12
andi $v0, $t0, 1
nop
jr $ra
nop