From bc03da310de0bad3fd03bc6adc91a55fef6a4fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=9CM=C3=9C=C5=9E?= <96421894+Tahinli@users.noreply.github.com> Date: Wed, 3 Jan 2024 20:51:11 +0300 Subject: [PATCH] feat: hello_world --- .gitignore | 1 + 001-hello_world.s | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .gitignore create mode 100644 001-hello_world.s diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1530978 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.o \ No newline at end of file diff --git a/001-hello_world.s b/001-hello_world.s new file mode 100644 index 0000000..2ffcb97 --- /dev/null +++ b/001-hello_world.s @@ -0,0 +1,16 @@ +.global _start +.intel_syntax noprefix + +_start: + mov rax, 1 + mov rdi, 1 + lea rsi, [hello_world] + mov rdx, 13 + syscall + + //exit + mov rax, 60 + syscall + +hello_world: + .asciz "Hello World\n"