xiranda/heyo.asm

32 lines
289 B
NASM

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