Skip to content

Instantly share code, notes, and snippets.

@StanleySathler
Created September 4, 2019 20:57
Show Gist options
  • Save StanleySathler/35daedbc41a36dc1e592734ce4d881a7 to your computer and use it in GitHub Desktop.
Save StanleySathler/35daedbc41a36dc1e592734ce4d881a7 to your computer and use it in GitHub Desktop.
section .data
msg db "Welcome!", 10 ; 10 is ASCII code for the new line
section .text
global _start
_start:
mov rax, 1 ; "1" is the %rax value for "sys_write"
mov rdi, 1
mov rsi, msg
mov rdx, 9
syscall
mov rax, 60 ; "60" is the %rax value for "sys_exit"
mov rdi, 0
syscall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment