aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxgpu/getinterruptcallback.s
blob: 510447f0de4c6f4516886c3011e7cf3d1d1157c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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