diff options
author | Skiz <skiznet@aol.com> | 2024-08-29 16:51:19 -0400 |
---|---|---|
committer | Skiz <skiznet@aol.com> | 2024-08-29 16:51:19 -0400 |
commit | c95026d0501b8252ad30397c6446a5febc07e1d6 (patch) | |
tree | 7172c35f450956a87cb47f5553e5edab3ee5e8ef /src | |
parent | ddee1500333faff2a3c0afaae0de8c9e260d8612 (diff) |
New way of making "Hello, World!"
Diffstat (limited to 'src')
-rw-r--r-- | src/x86_64.asm | 16 |
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 |