出错提示为:error A2022: instruction operands must be the same size ????
为什么 把mov bx,offset val8这句中的bx改为ebx就不会出错????
INCLUDE Irvine32.inc
.data
val8 word 10h,20h
.code
main PROC
mov bx,offset val8
exit
main ENDP
END main
------解决方案--------------------
在32位汇编上地址都是32位的,你bx只有16位,怎么能容得下呢?