Question 21
A processor has 40 instructions and 24 registers. Instruction format is 32 bits with opcode, two register fields, and an immediate field. How many bits are in the immediate field?
40 instructions => 6 bits opcode. 24 regs => 5 bits each. Immediate = 32 - 6 - 5 - 5 = 16 bits.