<<< Encoding ADD Immediate Instruction     Index     Encoding Sixteen Bit Operands >>>

22. Encoding Eight, Sixteen, and Thirty-Two Bit Operands


  • When Intel designed the 8086, one bit in the opcode, s, selected between 8 and 16 bit integer operand sizes.

  • Later, when CPU added 32-bit integers to its architecture on 80386 chip, there was a problem:

    • three encodings were needed to support 8, 16, and 32 bit sizes.

  • Solution was an operand size prefix byte.

  • x86 ADD Opcode:

      x86 ADD Opcode


<<< Encoding ADD Immediate Instruction     Index     Encoding Sixteen Bit Operands >>>