Created
September 4, 2019 20:57
-
-
Save StanleySathler/35daedbc41a36dc1e592734ce4d881a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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