test_7.asm 285 B

123456789101112131415161718192021
  1. .file "test_7.asm"
  2. .data
  3. str:
  4. .ascii "hello "
  5. .ascii "world!"
  6. .byte 0x0a
  7. .text
  8. .global _start
  9. _start:
  10. movq $1, %rax
  11. movq $1, %rdi
  12. leaq str(%rip), %rsi
  13. movq $13, %rdx
  14. syscall
  15. //exit
  16. movq $60, %rax
  17. movq $0, %rdi
  18. syscall