12345678910111213141516171819202122 |
- .file "test_9.asm"
- .data
- str:
- .ascii "test\n"
- .text
- .global _start
- _start:
- movq %rsp, %rbp
-
- movq $1, %rax
- movq $1, %rdi
- leaq str(%rip), %rsi
- movq $5, %rdx
- syscall
- movq %rbp, %rsp
- // exit
- movq $60, %rax
- movq $0, %rdi
- syscall
|