Question

13) Suppose a computer has 16-bit instructions. The instruction set consists of 32 different operations. All instructions have an opcode and two address fields (allowing for two addresses). The first

of these addresses must be a register, and the second must be memory. Expanding opcodes are not used. The machine has 16 registers. How many bits are needed for a register address?

Fig: 1