From 7be9178c0f9b0e698a305ecc5c0c41fcc596a4fc Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Sun, 23 Jun 2019 07:42:16 +0800 Subject: LibPSn00b officially v0.10b, added psxsio library, better DrawSync() and VSync(), better reference manual. --- libpsn00b/psxgpu/getinterruptcallback.s | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 libpsn00b/psxgpu/getinterruptcallback.s (limited to 'libpsn00b/psxgpu/getinterruptcallback.s') diff --git a/libpsn00b/psxgpu/getinterruptcallback.s b/libpsn00b/psxgpu/getinterruptcallback.s new file mode 100644 index 0000000..b465567 --- /dev/null +++ b/libpsn00b/psxgpu/getinterruptcallback.s @@ -0,0 +1,17 @@ +.set noreorder + +.section .text + +.global GetInterruptCallback +.type GetInterruptCallback, @function +GetInterruptCallback: + + # a0 - Interrupt number + + la $a1, _irq_func_table + sll $a0, 2 + addu $a1, $a0 + + jr $ra + lw $v0, 0($a1) + \ No newline at end of file -- cgit v1.2.3