MOVSX sign-extends its source (second) operand to the length of
its destination (first) operand, and copies the result into the
destination operand. MOVZX does the same, but zero-extends
rather than sign-extending.
movzxb
386 and laterMove Data with Sign or Zero Extend
movzxb reg16, r/m8 | movzxb reg32, r/m8 | movzxb reg64, r/m8Loading...
Forms
Every form of movzxb the assembler accepts, from NASM's own instruction table.
The second column is the processor that introduced the form; a badge marks a form that needs
an extension, that is lockable, or that long mode dropped.
| Form | Since | Notes |
|---|---|---|
| movzxb reg16, r/m8 | 386 | |
| movzxb reg32, r/m8 | 386 | |
| movzxb reg64, r/m8 | x86-64 | long |