GATE Computer ScienceHardGATE CSE

An 8-bit instruction format has 3-bit address fields and expanding opcodes. There are 3 two-address instructions and 8 zero-address instructions. What is the maximum number of one-address instructions possible?

  1. A. 7
  2. B. 6
  3. C. 8
  4. D. 5

Correct answer: A. 7

Two-address use prefixes 00, 01, 10, leaving 11xxx yyy: 8 opcodes with a 3-bit operand. Eight zero-address instructions need one full group of 8 values (11 111 yyy), so 8 − 1 = 7 one-address instructions remain.

More Computer Organization and Architecture questions

Exams that ask this topic