aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxgpu/getinterruptcallback.s
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-06-23 07:42:16 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-06-23 07:42:16 +0800
commit7be9178c0f9b0e698a305ecc5c0c41fcc596a4fc (patch)
treee98c627e1da5c764563774b89b0c06d7ac5ad0a4 /libpsn00b/psxgpu/getinterruptcallback.s
parentae9e545c3ed33d39ce21ae13ceb8337fa34901b8 (diff)
downloadpsn00bsdk-7be9178c0f9b0e698a305ecc5c0c41fcc596a4fc.tar.gz
LibPSn00b officially v0.10b, added psxsio library, better DrawSync() and VSync(), better reference manual.
Diffstat (limited to 'libpsn00b/psxgpu/getinterruptcallback.s')
-rw-r--r--libpsn00b/psxgpu/getinterruptcallback.s17
1 files changed, 17 insertions, 0 deletions
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