GATE CS 2024 Set 2 — Question 57
NAT+2 / -0MediumInstruction FormatsInstructions & Addressing ModesComputer Organization & Architecture
Computer Organization & Architecture → Instructions & Addressing Modes → Instruction Formats
Last updated
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 _________
Correct answer
32 to 32
Solution
Given:
The sum of the lengths of all fields must equal the total instruction size:The maximum number of unique opcodes possible is .
- Instruction size = 32 bits
- Number of registers = 16. Bits required per register = bits.
- Two register operand fields. Total bits = bits.
- Scalar field size = 16 bits.
- Number of addressing modes = 8. Bits required = bits.
The sum of the lengths of all fields must equal the total instruction size:The maximum number of unique opcodes possible is .
More questions on Instructions & Addressing Modes
2024 Set 2 Q11Consider a computer with a 4 MHz processor. Its DMA controller can transfer 8 bytes in 1 cycle from…2024 Set 1 Q15Which one of the following statements is FALSE?2024 Set 1 Q30Consider a 5-stage pipelined processor with Instruction Fetch (IF), Instruction Decode (ID),…2024 Set 2 Q31An instruction format has the following structure: Instruction Number: *Opcode destination reg,…2024 Set 2 Q53Consider a disk with the following specifications: rotation speed of 6000 RPM, average seek time of…
Practice GATE CS PYQs with adaptive difficulty
Timed practice, skill tracking, and AI explanations — free to start.
Start practicing free