section .data msg: db "yay", 10 len: equ $-msg section .text global main main: mov rax, 1 mov rdi, 1 mov esi, msg mov rdx, len syscall mov rax, 60 mov rdi, 0 syscall