; syscall number: rax ; args: rdi, rsi, rdx, r10 ; syscall ; return value: rax global _start section .data str: db '30', 0xA section .bss section .text _start: mov rsi, str mov rdx, 3 call write_stdout call exit ; rsi: buf, rdx: count write_stdout: mov rdi, 1 mov rax, 1 syscall ret exit: xor rdi, rdi mov rax, 60 syscall