From what I've read about mov
, it copies the second argument into the first argument. Then, what does this do?
movl 8(%ebp), %edx
It copies whatever is in edx to the first parameter of the function (since an offset of +8 from ebp
is a parameter)?
I feel like what this really means is moving the first parameter into the edx
register, but I read on Wikipedia that it is the other way around?