1

在 NASM 中,MOV EBX, AX 是有效指令吗?

基本上,你能把一个小寄存器的内容移到一个比它大的寄存器中吗?

4

1 回答 1

2

That's not valid anywhere. To get the effect you want, do

MOVZX EBX, AX, or
MOVSX EBX, AX

depending on whether you want to zero or sign extend the source operand.

于 2013-03-06T01:40:14.983 回答