; you didn't exit the program to do that add: mov rax, 0x02000001 xor rdi, rdi syscall ; to the end of your program