exit.s (350B)
1 .text 2 .global _start 3 4 _start: 5 # Store system call 1 in the EAX register. 6 # mov = instruction 7 # $1, %eax = operands 8 # %eax = register 9 mov $1, %eax 10 11 # Store the exit code 0 in the EBX register. 12 mov $0, %ebx 13 14 # Call interrupt handler 0x80 (128) -- on Linux, this is the kernel. 15 # Kernel will take over and see 1 in %eax, 0 in %ebx. 16 int $0x80