Problem: Let say you are designing the instruction set for a new type of computer. The computer has 64 instructions, 16 general purpose registers. It supports a byte addressable memory of up to 32MB.
Question 1. For a 3-operand ADD instruction that only uses register addressing mode, how long (number of bits) should the instruction be?
Question 2. For a 2-operand ADD instruction, in which one of the operands is a memory location with direct addressing mode, how long (number of bits) should the instruction be?
Describe each and every question in depth with examples.