[BITS 64] ; begining of the assembly program ; sys calls %define SYS_EXIT 60 %define SYS_WRITE 1 %define STD_IN 0 %define STD_OUT 1 %define STD_ERR 2 section .bss ; nada section .data section .text global _start _start: xor rax, rax push rax mov rax,8 push rax mov rax,7 push rax mov rax,9 pop rbx sub rax, rbx neg rax pop rbx imul rax, rbx pop rbx sub rax, rbx neg rax ; end of program mov rdi,rax mov rax,SYS_EXIT syscall