Skip to content

Instantly share code, notes, and snippets.

@matthewholliday
Last active December 5, 2023 15:40
Show Gist options
  • Save matthewholliday/ab1570aa3f63717017e30b6f0d9917ac to your computer and use it in GitHub Desktop.
Save matthewholliday/ab1570aa3f63717017e30b6f0d9917ac to your computer and use it in GitHub Desktop.
ASSEMBLY SYS_EXIT
section .data
section .text
global _start
exit:
mov ebx, 0 ; return 0 status on exit - 'No Errors'
mov eax, 1 ; invoke SYS_EXIT (kernel opcode 1)
int 80h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment