xiranda/heyo.asm

32 lines
289 B
NASM
Raw Permalink Normal View History

2024-04-03 14:29:45 -04:00
format ELF64 executable 3
segment readable executable
entry main
main:
; system ({...});
mov rax, 1
mov rdi, 1
mov rsi, text
mov rdx, [size]
syscall
; return;
xor rax, rax
ret
;end
mov rax, 60
mov rdi, 0
syscall
segment readable writable
text db 'Heyo world!', 10, 0
size dq 12