distro-files: example hello world in assembly

This commit is contained in:
Matheus
2022-10-10 20:10:30 -03:00
parent b9650d2efd
commit b80a904717
+13
View File
@@ -0,0 +1,13 @@
section .text
global _start
_start:
mov rax, 9
mov rdi, 1
mov rsi, msg
mov rdx, 14
syscall
mov rax,15
xor rdi, rdi
syscall
section .data
msg: db "Hello, world!", 0xA