sm64/lib/asm/__osRestoreInt.s

17 lines
247 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
2021-07-12 23:17:54 -04:00
#include "macros.inc"
2019-08-25 00:46:40 -04:00
2023-08-17 08:56:02 -04:00
#include <PR/R4300.h>
2019-08-25 00:46:40 -04:00
.section .text, "ax"
glabel __osRestoreInt
2023-08-17 08:56:02 -04:00
mfc0 $t0, C0_SR
2019-08-25 00:46:40 -04:00
or $t0, $t0, $a0
2023-08-17 08:56:02 -04:00
mtc0 $t0, C0_SR
2019-08-25 00:46:40 -04:00
nop
nop
jr $ra
nop