cradleasm4.asm 236 B

1234567891011121314151617181920
  1. ; begining of the assembly program
  2. %define SYS_EXIT 60
  3. %define SYS_WRITE 1
  4. %define STD_OUT 1
  5. section .data
  6. section .text
  7. global _start
  8. _start:
  9. mov eax,6
  10. mov ebx, eax
  11. mov eax,9
  12. add eax, ebx
  13. mov rdi,0
  14. mov rax,SYS_EXIT
  15. syscall