GATE Computer ScienceHardGATE CSE
An 8-bit instruction format has 3-bit address fields and expanding opcodes. There are 3 two-address instructions and 8 zero-address instructions. What is the maximum number of one-address instructions possible?
- A. 7
- B. 6
- C. 8
- D. 5
Correct answer: A. 7
Two-address use prefixes 00, 01, 10, leaving 11xxx yyy: 8 opcodes with a 3-bit operand. Eight zero-address instructions need one full group of 8 values (11 111 yyy), so 8 − 1 = 7 one-address instructions remain.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- Booth's algorithm multiplies using the 8-bit multiplier 01101110 (with an implied 0 to the right of the LSB). How many of the 8 steps…
- A microprogrammed control unit has four groups of mutually exclusive control signals containing 15, 7, 31 and 3 signals; each group is…
- A write-back, write-allocate, direct-mapped cache has 4 one-block lines (line = block number mod 4) and starts empty. The block accesses…
- A memory has 4 low-order interleaved banks, each needing 40 ns per access, and the bus can start a new bank access every 10 ns. Starting…
- A 7-bit even-parity Hamming codeword (bit positions 1 to 7, parity bits at positions 1, 2 and 4) is received as 1010110 (position 1…
- In a pipeline with ideal CPI 1, 25% of instructions are loads and 40% of these are immediately followed by a dependent instruction (1…