summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkiz <skiznet@aol.com>2024-08-29 17:30:22 -0400
committerSkiz <skiznet@aol.com>2024-08-29 17:30:22 -0400
commit314a3896ca6e00dc92cdf2ec28b0979781f406c8 (patch)
tree3348ffa362175deb2330c5c6396dd8e3f88496df
parentda1eeeeefdb110e48741a428f16e493f93428fd7 (diff)
Copied "Hello World" program to new file.HEADmaster
-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