test_11.s 275 B

1234567891011121314151617181920
  1. .file "test_11.as"
  2. .text
  3. .data
  4. str:
  5. .ascii "test\n"
  6. .text
  7. .globl main
  8. main:
  9. endbr64
  10. movq %rsp, %rbp
  11. movq $0, %rax
  12. movq $1, %rdi
  13. leaq str(%rip), %rsi
  14. movq $5, %rdx
  15. callq write
  16. movq %rbp, %rsp
  17. movl $0, %eax
  18. ret