| 123456789101112131415161718192021222324252627 |
- [BITS 64]
- ; begining of the assembly program
- %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:
- mov rax,4
- push rax
- mov rax,5
- pop rbx
- add rax, rbx
- mov rdi, rax
- mov rax,SYS_EXIT
- syscall
|