You are here : assemblyUNIX INT80hEAX01h

EAX=01h - UNIX INT80h

EAX=1, is an Unix int 80h interrupt to exit the program. It is a sys_exit interrupt.


Syntax

mov eax, 1
int 80h


Example

section .text
	global _start
_start:
	...
	...
	mov eax, 1
	int 0x80


Output / Return Value

Exits the program.


Limitations

Available only for UNIX based Systems.


Alternatives / See Also


Reference

https://www.tutorialspoint.com/assembly_programming/assembly_system_calls.htm