summaryrefslogtreecommitdiff
path: root/src/internal/mipsn32/syscall.s
blob: 510a6fa4467ffba5d976d703ccca497c6d934767 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.set	noreorder
.global	__syscall
.hidden	__syscall
.type	__syscall,@function
__syscall:
	move	$2, $4
	move	$4, $5
	move	$5, $6
	move	$6, $7
	move	$7, $8
	move	$8, $9
	move	$9, $10
	move	$10, $11
	syscall
	beq	$7, $0, 1f
	nop
	subu	$2, $0, $2
1:	jr	$ra
	nop