I have to write this C -language program as assembly.
void change(int64_t *num1, int64_t *num2){
int64_t number = *num1;
*num1 = *num2;
*num2 = number;
}
This is what I have tried:
movq %rdi,%rdx
movq %rsi,%rdi
movq %rdx,%rsi
What am I doing wrong?