On x64, loading from a 64-bit absolute address (that is, dereferencing a 64-bit immediate) can be done by
movabs addr64, %rax
However, when the destination register is any other than rax
the assembler gives an error message saying operand size mismatch for movabs
. What am I missing?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…