The GATE Grind

GATE 2025 CS (CS1) – Question 37

Computer Organization and Architecture · Instruction Set and Addressing Modes · 2 marks · Multiple choice

A processor has 64 general-purpose registers and 50 distinct instruction types. An instruction is encoded in 32-bits. What is the maximum number of bits that can be used to store the immediate operand for the given instruction?

ADD R1, #25 // R1 = R1 + 25

  1. 16
  2. 20
  3. 22
  4. 24

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (B) 20

Explanation

A 32-bit instruction is split into opcode, register field(s) and the immediate.

Remaining bits for the immediate $=32-6-6=\mathbf{20}$.

More Instruction Set and Addressing Modes questions

All Instruction Set and Addressing Modes questions →