GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A 16-bit instruction format has 4-bit address fields and expanding opcodes. 14 three-address instructions, 30 two-address instructions and 31 one-address instructions are required. How many zero-address instructions can still be encoded at most?
- A. 256
- B. 32
- C. 240
- D. 16
Correct answer: D. 16
Three-address: 2⁴ = 16 prefixes, 14 used, 2 left → 2·16 = 32 two-address codes, 30 used, 2 left → 32 one-address codes, 31 used, 1 left → 1·16 = 16 zero-address codes.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A cache with 4 ns access backs a 120 ns memory. Find the minimum hit ratio for an average access time of at most 14 ns (a) when memory is…
- A 64-byte, 2-way set-associative cache with 8-byte blocks and LRU replacement is empty. The processor reads these byte addresses in order…
- In IEEE 754 single precision with round-to-nearest-even (every operation rounded to single), which of these are true? I. 0.1f + 0.2f ==…
- An 8-bit data word d1…d8 = 1 0 1 1 0 0 1 0 is stored with a 12-bit single-error-correcting Hamming code: positions 1, 2, 4, 8 hold check…
- A byte-addressed machine has auto-increment (R1)+ (use R1 as the address, then add 4) and auto-decrement −(R1) (subtract 4 from R1, then…
- A fully associative cache holds 4 blocks. A loop cycles through 5 distinct blocks 0,1,2,3,4,0,1,2,3,4,… for 30 references. How many hits…