summaryrefslogtreecommitdiff
path: root/PGU/OLD/asm/exit.s
blob: b1ef45b795e8429bfe710e92e5c6d4af7ce198d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.section .data

.section .text

.globl _start

_start:

	# %eax should contain syscall number
	# to be executed (exit syscall num: 1)
	movl	$1, %eax

	# %ebx contains syscall argument
	movl	$5, %ebx

	#Call syscall interrupt
	int	$0x80