ISRO Scientist/Engineer CSE 2020Computer Organization and Architecture › Instruction Set and Addressing Modes
ISRO Scientist/Engineer CSE 2020 PYQ: Consider a 32- bit processor which supports 70 instructions. Each instruction is 32 bit long and has 4…
Consider a 32- bit processor which supports 70 instructions. Each instruction is 32 bit long and has 4 fields namely opcode, two register identifiers and an immediate operand of unsigned integer type. Maximum value of the immediate operand that can be supported by the processor is 8191. How many registers the processor has?
- A32
- B64Correct answer
- C128
- D16
Answer
(B) $64$
Approach
The instruction is 32 bits and has four fields: opcode, two register identifiers, and an immediate operand. The immediate operand is unsigned and its maximum value is 8191, so it needs 13 bits. The processor supports 70 instructions, so the opcode needs 7 bits. The remaining bits are split equally between the two register identifiers, giving the number of registers.
Reviewed by ISRO IQ Editorial Team.