global _start section .text _start: mov rax, 1 top: cmp rax, 10 je endloop inc rax jmp top endloop: bottom: dec rax cmp rax, 0 jnz bottom ; return (0) mov rax, 60 mov rdi, 0