Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 NASM 中,MOV EBX, AX 是有效指令吗?
基本上,你能把一个小寄存器的内容移到一个比它大的寄存器中吗?
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.