Is it possible to design an expanding opcode to allow the following to be encoded in a 16-bit instruction? Assume that a register operand requires 3 bits and this instruction set does not allow memory addresses to be directly used in an instruction. Show its encoding it possible. • 4 instructions with three registers • 5 instructions with one register • 16 instructions with zero registers
Problem1 . Is it possible to design an expanding opcode to allow the following to be encoded in a 16-bit instruction? Assume that a register operand requires 3 bits and this instruction set does not allow
memory addresses to be directly used in an instruction. Show its encoding it possible.
• 4 instructions with three registers
• 5 instructions with one register
• 16 instructions with zero registers
Problem2. Is it possible to design an expanding opcode to allow the following to be encoded in a 12-bit instruction? Show its encoding it possible.
• 2 instructions with one 4-bit operands
• 4 instructions with two 3-bit operands
• 2 instructions with one 4-bit operand
• 16 instructions with zero registers
Trending now
This is a popular solution!
Step by step
Solved in 4 steps