I'm learning x86(_64) assembly from trial and error. One thing I want to do is move the value from say -4 to -8 in the stack, but the GNU Assembler doesn't seem to like this:
error: invalid operand for instruction
movl -4(%rsp), -16(%rsp)
And I'm not sure why. To me it logically makes sense, move the value from the stack at offset -4 into -16.