I'm attempting to learn assembly language and I'm not sure if I'm on the right track. I have a program in assembly language that I need to convert to C.
addq %rsi, %rdi
addq %rdi, %rdx
movq %rdx, %rax
ret
Trying to work through it myself I come up with something along the lines of
long p1(long x, long y, long z)
{
x = x + y;
z = z + x;
long a = z;
return a;
}
No matter which way I look at it I feel like I'm close but when I objdump I get nothing of the sort. Looking for some guidance.. thanks!