GAS x64 GNU Assembler arguments tutorial in Linux
args.asm-)
.global _start
.text
_start:
pop %rax
pop %rax
mov %rax,%r8
add $7,%r8
mov $1,%rax
mov $1,%rdi
mov %r8,%rsi
mov $5,%rdx
syscall
mov $60,%rax
mov $0,%rdi
syscall
(-args.asm
terminal-)
./args hello
(-terminal
=hello