From 314a3896ca6e00dc92cdf2ec28b0979781f406c8 Mon Sep 17 00:00:00 2001 From: Skiz Date: Thu, 29 Aug 2024 17:30:22 -0400 Subject: Copied "Hello World" program to new file. --- src/helloworld.asm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/helloworld.asm 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 -- cgit v1.2.3