GATE CSE 2024 Session 2 Q57: Opcodes per addressing mode in a 32-bit instruction
- Computer Organization and Architecture
- 2 marks
- NAT
- No negative marking
Question
A processor with 16 general purpose registers uses a 32-bit instruction format. The instruction format consists of an opcode field, an addressing mode field, two register operand fields, and a 16-bit scalar field. If 8 addressing modes are to be supported, the maximum number of unique opcodes possible for every addressing mode is _________
Try it: numerical answer: type the value
Show answer and explanation
Answer: 32 (official GATE 2024 final answer key)
Concept used: Instruction field widths must add up to the instruction length.
First step: Registers need 4 bits each (8 total), modes need 3 bits, the scalar 16 bits; the opcode gets the rest of the 32 bits.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2024 Session 2 CS question paper and final answer key, organised by IISc Bangalore. Question paper · Answer key
More Computer Organization and Architecture PYQs
- 2026 Session 1 · Q14Match addressing modes with high-level data elements
- 2026 Session 1 · Q15Instruction sequence for Z = X + Y on a load-store machine
- 2026 Session 1 · Q16Register dependency that causes a data hazard
- 2026 Session 1 · Q36IEEE 754 single-precision sum of 35C00000 and 34A00000
- 2026 Session 1 · Q38Tag length: direct-mapped vs K-way set-associative cache
- 2026 Session 1 · Q54Impossible TLB / page table / cache event sequences