aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxetc/getinterruptcallback.s
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2020-09-19 20:43:05 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2020-09-19 20:43:05 +0800
commit9f4891f95070c66ea9f1aba99d72724d4ab24e5a (patch)
tree723e3ef2118a3d1a9e6dafa811ed1b8b1bc9196e /libpsn00b/psxetc/getinterruptcallback.s
parent6762c39551ded059450d17d8bb0cb80642c8aaab (diff)
downloadpsn00bsdk-9f4891f95070c66ea9f1aba99d72724d4ab24e5a.tar.gz
Revised makefiles, added strtok(), command line arguments, SetHeapSize(), moved ISR and callback system to psxetc, moved debug font to psxgpu, fixed CD-ROM library crashing on PSIO, fixed interrupt callback setup to fix crashing on ResetGraph()
Diffstat (limited to 'libpsn00b/psxetc/getinterruptcallback.s')
-rw-r--r--libpsn00b/psxetc/getinterruptcallback.s19
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