From 9f4891f95070c66ea9f1aba99d72724d4ab24e5a Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Sat, 19 Sep 2020 20:43:05 +0800 Subject: 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() --- libpsn00b/psxetc/getinterruptcallback.s | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libpsn00b/psxetc/getinterruptcallback.s (limited to 'libpsn00b/psxetc/getinterruptcallback.s') 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 -- cgit v1.2.3