cradleasm6.asm 310 B

123456789101112131415161718192021222324252627
  1. [BITS 64]
  2. ; begining of the assembly program
  3. %define SYS_EXIT 60
  4. %define SYS_WRITE 1
  5. %define STD_IN 0
  6. %define STD_OUT 1
  7. %define STD_ERR 2
  8. section .bss
  9. ; nada
  10. section .data
  11. section .text
  12. global _start
  13. _start:
  14. mov rax,4
  15. push rax
  16. mov rax,5
  17. pop rbx
  18. add rax, rbx
  19. mov rdi, rax
  20. mov rax,SYS_EXIT
  21. syscall