在这里,我试图将变量X(这是一个8位变量)移入寄存器bx(这是一个16位寄存器)。在这种情况下,如何将X的值移动到寄存器bx中?如何将8位地址移入x86程序集的16位寄存器?
.686p
.model flat,stdcall
.stack 2048
.data
X byte 5
ExitProcess proto, exitcode:dword
.code
start:
invoke ExitProcess, 0
mov bx, X; 1>p4.asm(13): error A2022: instruction operands must be the same size
end start ;what does the end statement do?
[不能移动8位地址到16位寄存器](http://stackoverflow.com/questions/33959446/cannot-move-8-bit-address-to-16-bit-register) – 2015-11-27 15:05:16