This is what I am currently doing but leaq is not the correct instruction
(I want to print the contents of %rax but I need the register for the syscall so I move it to %rdx) :
_printResult:
movq %rax, %rdx
movq $1, %rax
movq $1, %rdi
leaq %rdx, %rsi
movq $3, %rdx
syscall
Error: operand type mismatch for 'lea'