cradleasm6.asm 352 B

12345678910111213141516171819202122232425262728293031
  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,6
  15. push rax
  16. mov rax,7
  17. push rax
  18. mov rax,9
  19. pop rbx
  20. imul rax, rbx
  21. pop rbx
  22. add rax, rbx
  23. mov rdi,0
  24. mov rax,SYS_EXIT
  25. syscall