https://www.youtube.com/watch?v=6S5KRJv-7RU rdi rsi r8 r - 64 bit pointer mov rdi,8 mov rdi,rsi memory operations mov rdi, qword ptr[rsi] values from memory into register mov qword ptr[rsi], rdi store into memory operation https://blog.rchapman.org/posts/Linux_System_Call_Table_for_x86_64/ Compilation: as -c assemblyexample1.asm -o assemblyexample1.o gcc assemblyexample1.o -o assemblyexample1 -nostdlib -static Check error code: echo $?