GATE CSE 2018 Q61: Maximum number of 1F instructions in a 16-bit expanding opcode
- Computer Organization and Architecture
- 2 marks
- NAT
- No negative marking
Syllabus topic: Instruction set and addressing modes
Question
A processor has 16 integer registers (R0, R1, .. , R15) and 64 floating point registers (F0, F1, … , F63). It uses a 2-byte instruction format. There are four categories of instructions: Type-1, Type-2, Type-3, and Type-4. Type-1 category consists of four instructions, each with 3 integer register operands (3Rs). Type-2 category consists of eight instructions, each with 2 floating point register operands (2Fs). Type-3 category consists of fourteen instructions, each with one integer register operand and one floating point register operand (1R+1F). Type-4 category consists of N instructions, each with a floating point register operand (1F).
The maximum value of N is __________.
Try it: numerical answer: type the value
Show answer and explanation
Answer: 32 (official GATE 2018 final answer key)
Concept used: Expanding opcodes: each instruction uses up of the available encodings, and the encodings left over limit the remaining category.
First step: An integer register needs 4 bits and a floating point register 6 bits; count the encodings used by Types 1–3 out of and divide what is left by .
Full step-by-step solution
Loading…
Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.
More questions on Instruction set and addressing modes
Every PYQ on this topic →Share this question
Source: official GATE 2018 CS question paper and final answer key, organised by IIT Guwahati. 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