Question discussion

A processor has 100 distinct instructions and 32 registers. A register-type instruction consists of an opcode and three register operands.…

1745Medium DSSSB TGT Computer Science 0 replies

A processor has 100 distinct instructions and 32 registers. A register-type instruction consists of an opcode and three register operands. What is the minimum number of bits needed for this instruction?

  • A17
  • B22
  • C20
  • D26
Correct answer: B

Explanation

The opcode needs ⌈log₂100⌉ = 7 bits and each of the three register fields needs 5 bits, so 7 + 15 = 22 bits.

Discussion 0

Nobody has replied yet. Start the discussion!