feat: hello_world

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-01-03 20:51:11 +03:00
parent 23c3689f26
commit bc03da310d
2 changed files with 17 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.o

16
001-hello_world.s Normal file
View file

@ -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"