From 5286d18e2356684475b644cbad3ae581ff927796 Mon Sep 17 00:00:00 2001 From: turret Date: Wed, 6 Sep 2023 20:38:31 -0500 Subject: code initial commit --- cat.s | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cat.s (limited to 'cat.s') 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 -- cgit v1.2.3