【发布时间】:2015-09-12 03:44:20
【问题描述】:
我真的对这件事感到困惑。我正在关注 x86 处理器的汇编编程一书,并且正在阅读有关 mov 指令及其工作原理的信息。所以,作者说下面的指令是有效的 mov mem,reg.....基本上将寄存器值移动到内存地址。
现在这是我尝试过的,但我不断收到这个错误,称为无效操作数。有人可以解释一下到底是什么错误。
#fasm#
mov ax,[var] ;the value 67 is moved to the ax register works perfect
mov myvar,ax ; my aim is to move the value 67 to the memory location of ;myvar but then i keep getting this error - Invalid operand? why is that?
var: dw 67
myvar: dw ?
【问题讨论】: