homebrew/inc/n64_util.inc

16 lines
304 B
PHP
Raw Normal View History

2018-08-20 20:10:06 -07:00
macro EnableInt() {
lli t0, 0xAAA
lli t1, 0xFF01
lui a0, MI_BASE
sw t0, MI_INTR_MASK(a0)
mtc0 t1, CP0_Status
}
macro DisableInt() {
lli t0, 0x555
lli t1, 0x0001
lui a0, MI_BASE
sw t0, MI_INTR_MASK(a0)
mtc0 t1, CP0_Status
}