summaryrefslogtreecommitdiff
path: root/src/first.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/first.s')
-rw-r--r--src/first.s12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/first.s b/src/first.s
index f778dee..e46b502 100644
--- a/src/first.s
+++ b/src/first.s
@@ -3,9 +3,17 @@
_start:
- ; sys_write (print)
+ // sys_write (print)
+ mov rax, 1
+ mov rdi, 1
+ lea rsi, [hello_world]
+ mov rdx, 14
+ syscall
- ; sys_exit
+ // sys_exit
mov rax, 60
mov rdi, 69
syscall
+
+hello_world:
+ .asciz "Hello, World!\n"