Bits left for an immediate field

A processor uses fixed-length 32-bit instructions. One instruction format contains an opcode field, two register fields and an immediate field. The processor has 64 general-purpose registers, and the instruction set defines 120 distinct opcodes. If the opcode field and each register field use the fewest bits that can encode every possibility, how many bits remain for the immediate field? Answer as a whole number of bits.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More CPU Architecture Questions: