GATE CS 2025 Set 1 | Question 37
Computer Organization & Architecture › Machine Instructions · MCQ · 2 marks · Answer: B
- Question 37Computer Organization & Architecturemcq2 marksA 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 instructionADD R1, #immuses one opcode + one register + the immediate. In 32 bits: - A.
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 →