Three-Operand Instructions

From CPUDev Wiki
Jump to: navigation, search

Two-operand instructions are generally instructions of the c := a <op> b form, that is the output is stored in an explicitly specified register.

Advantages

  • Moves sometimes needed less often - When an operation like c := a + b is encountered, it can be directly encoded in one instruction.

Disadvantages

  • Longer instruction size - Having only two instead of three operands in an instruction would save space that is used for the third operand.

See Also

Two-Operand Instructions