<<< Encoding Eight, Sixteen, and Thirty-Two Bit Operands     Index     x86 Instruction Prefix Bytes >>>

23. Encoding Sixteen Bit Operands


  • 32-bit programs don't use 16-bit operands that often, but they do need them now and then.

  • To allow for 16-bit operands, Intel added prefix a 32-bit mode instruction with the operand size prefix byte with value 66h.

  • This prefix byte tells the CPU to operand on 16-bit data rather than 32-bit data.

  • x86 instruction format:

      instruction format


<<< Encoding Eight, Sixteen, and Thirty-Two Bit Operands     Index     x86 Instruction Prefix Bytes >>>