GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A 16-bit instruction has 5-bit address fields. Two-address instructions use a 6-bit opcode; further opcodes are obtained by expanding into the first address field. If 40 two-address instructions are defined, what is the maximum number of one-address instructions?
- A. 384
- B. 2048
- C. 1280
- D. 768
Correct answer: D. 768
A 6-bit opcode gives 64 two-address codes; 40 are used so 24 prefixes remain, each expandable by the 5-bit field into 32 one-address codes: 24·32 = 768.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- The back-edge branch of an inner loop executes the outcome pattern T T T N (three taken, one exit), repeated for 6 consecutive outer…
- A memory system has access time 40 ns and cycle time 60 ns per module. If the addresses are low-order interleaved over 4 such modules and…
- 90% of a program parallelises perfectly, but coordinating p processors adds an overhead of 0.005·p of the single-processor run time, so…
- Three caches with 4 one-word lines each see the word-address trace [0, 4, 0, 8, 4, 0, 12, 4, 0, 8]: (i) direct-mapped, (ii) 2-way…
- A 5-stage pipeline has stage delays 200, 150, 300, 250 and 100 ps and a 25 ps latch overhead per stage. The 300 ps stage is split into two…
- Physical memory is 2 GB, virtual address space 2⁴⁸ bytes, pages 16 KB, and each PTE stores the frame number plus 6 control bits, rounded…