GATE 2014 CS (CS1) – Question 19
A 32-bit architecture uses one-word instructions and has 64 registers, each 32 bits. It supports 45 instructions having an immediate operand and two register operands. Find the maximum unsigned immediate operand.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: 16383 to 16383
Explanation
The45 opcodes need ceil(log₂45)=6bits. Each of64 registers requires6bits, so two register fields consume12bits. Of the32instruction bits,14remain for the unsigned immediate. Maximum2¹⁴−1=**16383**.