From bd479cfe72fe6bdbf1ef6e1089c81b1b7703caa1 Mon Sep 17 00:00:00 2001 From: "Slava \"nerfur\" Voronzoff" Date: Tue, 11 Jan 2022 15:39:20 +0300 Subject: [PATCH] Flat Assembler ELF64 Time to go low-level --- bees.fasm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 bees.fasm diff --git a/bees.fasm b/bees.fasm new file mode 100644 index 0000000..b3a1fad --- /dev/null +++ b/bees.fasm @@ -0,0 +1,19 @@ +format ELF64 executable 3 + +segment readable executable + +entry main + +main: + lea rdi, [msg] + mov rax, 5 + mov rdx, rax + mov rsi, rdi + mov rdi, 1 + mov rax, 1 + syscall + jmp main + +segment readable writable + +msg db 'BEES ', 5, 0