GATE CS 2025 Set 1 | Question 37

Computer Organization & Architecture › Machine Instructions · MCQ · 2 marks · Answer: B

  1. Question 37Computer Organization & Architecturemcq2 marks
    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
    • A.
      16
    • B.
      20
      ✓
    • C.
      22
    • D.
      24

    Answer: B

    Solution

    Answer: (B) 20 Field sizes: - Opcode: 50 instruction types need bits. - Register: 64 registers need bits (one register operand, R1). The instruction ADD R1, #imm uses one opcode + one register + the immediate. In 32 bits:

More GATE PYQ on Machine Instructions

All GATE CS Computer Organization & Architecture PYQ →

Attempt GATE CS 2025 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →