diff options
Diffstat (limited to 'libpsn00b/psxetc/getinterruptcallback.s')
| -rw-r--r-- | libpsn00b/psxetc/getinterruptcallback.s | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libpsn00b/psxetc/getinterruptcallback.s b/libpsn00b/psxetc/getinterruptcallback.s new file mode 100644 index 0000000..510447f --- /dev/null +++ b/libpsn00b/psxetc/getinterruptcallback.s @@ -0,0 +1,19 @@ +.set noreorder + +.section .text + +.global GetInterruptCallback +.type GetInterruptCallback, @function +GetInterruptCallback: + + # a0 - Interrupt number + + la $a1, _irq_func_table + sll $a0, 2 + addu $a1, $a0 + lw $v0, 0($a1) + nop + jr $ra + nop + +
\ No newline at end of file |
