From b80a90471708b83bbee8c0285dfd2dd6586f4d5d Mon Sep 17 00:00:00 2001 From: Matheus Date: Mon, 10 Oct 2022 20:10:30 -0300 Subject: [PATCH] distro-files: example hello world in assembly --- distro-files/root/hello.asm | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 distro-files/root/hello.asm diff --git a/distro-files/root/hello.asm b/distro-files/root/hello.asm new file mode 100644 index 00000000..81c5ad32 --- /dev/null +++ b/distro-files/root/hello.asm @@ -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