21.s 317 B

123456789101112131415161718192021
  1. // Таблица сомволов
  2. .file "21.s"
  3. .data
  4. str:
  5. .ascii "test\n"
  6. .text
  7. .globl main
  8. .type main, @function
  9. main:
  10. endbr64
  11. movq %rsp, %rbp
  12. movq $1, %rax
  13. movq $1, %rdi
  14. leaq str(%rip), %rsi
  15. movq $5, %rdx
  16. syscall
  17. movq %rbp, %rsp
  18. movl $0, %eax
  19. retq