aboutsummaryrefslogtreecommitdiffstats
path: root/cat.s
diff options
context:
space:
mode:
Diffstat (limited to 'cat.s')
-rw-r--r--cat.s16
1 files changed, 16 insertions, 0 deletions
diff --git a/cat.s b/cat.s
new file mode 100644
index 0000000..79d9f30
--- /dev/null
+++ b/cat.s
@@ -0,0 +1,16 @@
+ global _start
+ section .text
+_start:
+ mov rax, 1
+ mov rdi, 1
+ mov rsi, msg
+ mov rdx, msgSize
+ syscall
+
+ mov rax, 60
+ mov rdi, 0
+ syscall
+
+ section .data
+msg: db "Hello, world!", 10
+msgSize: EQU $ - msg