Consider a processor with 16 general-purpose registers and a 2-byte…

GATE · 2026 · CS · Set 2 · Computer Science & IT

Consider a processor with 16 general-purpose registers and a 2-byte instruction format for every instruction. Variable-sized prefix opcodes are permitted. There are three instruction types: M-type, R-type, and C-type. Each M-type instruction has two register operands and a 6-bit immediate operand. Each R-type instruction has three register operands. Each C-type instruction has one register operand and a 6-bit offset. If there are 2 unique M-type opcodes and 7 unique R-type opcodes, what is the maximum possible number of unique C-type opcodes?

  1. A.

    8

  2. B.

    4

  3. C.

    64

  4. D.

    16

Attempted by 267 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…