GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A 16-bit instruction has 5-bit address fields. Two-address instructions use a 6-bit opcode; further opcodes are obtained by expanding into the first address field. If 40 two-address instructions are defined, what is the maximum number of one-address instructions?

  1. A. 384
  2. B. 2048
  3. C. 1280
  4. D. 768

Correct answer: D. 768

A 6-bit opcode gives 64 two-address codes; 40 are used so 24 prefixes remain, each expandable by the 5-bit field into 32 one-address codes: 24·32 = 768.

More Computer Organization and Architecture questions

Exams that ask this topic