summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/helloworld.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/helloworld.asm b/src/helloworld.asm
new file mode 100644
index 0000000..5bfbcdd
--- /dev/null
+++ b/src/helloworld.asm
@@ -0,0 +1,16 @@
+section .data
+ text db "Hello, World!",10
+
+section .text
+ global _start
+
+_start:
+ mov rax, 1
+ mov rdi, 1
+ mov rsi, text
+ mov rdx, 14
+ syscall
+
+ mov rax, 60
+ mov rdi, 0
+ syscall