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