summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkiz <skiznet@aol.com>2024-08-29 16:51:19 -0400
committerSkiz <skiznet@aol.com>2024-08-29 16:51:19 -0400
commitc95026d0501b8252ad30397c6446a5febc07e1d6 (patch)
tree7172c35f450956a87cb47f5553e5edab3ee5e8ef
parentddee1500333faff2a3c0afaae0de8c9e260d8612 (diff)
New way of making "Hello, World!"
-rw-r--r--src/x86_64.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/x86_64.asm b/src/x86_64.asm
new file mode 100644
index 0000000..5bfbcdd
--- /dev/null
+++ b/src/x86_64.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