Abstract


  • It specifies how different parts of an instruction are organised within a binary code word

Fixed-length Instruction

Variable-length Instruction

Opcode


Example

In MIPS, it is 6-bits, so total different arrangements.

Benefits of fixed-size opcode

  • Instruction decode is more efficient
  • Easier to design hardware
  • Does NOT guarantee a smaller set of assembly code, actually bigger
  • Does NOT guarantee faster processing time (this depends on the cpu implementation)

Expanding Opcode

  • The Opcode has variable lengths for different Instruction. This is a good way to maximise instruction bits

Example

Instruction Operand