Please answer the following based on these instructions; The below microarchitecture diagram has three independent control lines (Reg Dest, Reg Input, ALU Input) control individual multiplexers that were previously controlled together by a single control line named Mem This allows us to add a new instruction, ADDC, which stands for "Add Constant" ADDC Rs, const, Rt adds the contents of source register Rs to the two's complement constant value const, given by the instruction, and stores the sum in destination register Rt. For example, ADDC R2, 3, R4 stores into register R4 the result of adding the constant 3 to the contents of register R2; ADDC R0, -1, R2 stores 0x1111 into register R2 (because 0+-1=-1) a) What values do registers R5 and R6 hold after the following program runs? R1 always holds 1; R5 and R6 are general purpose registers ADD R1, R1, R5 ADD R1, R5, R6 ADDC R6, 4, R5 HALT b) Show the concrete encoding of the ADDC R6, 4, R5 instruction
Please answer the following based on these instructions;
The below microarchitecture diagram has three independent control lines (Reg Dest, Reg Input, ALU Input) control individual multiplexers that were previously controlled together by a single control line named Mem This allows us to add a new instruction, ADDC, which stands for "Add Constant" ADDC Rs, const, Rt adds the contents of source register Rs to the two's complement constant value const, given by the instruction, and stores the sum in destination register Rt. For example, ADDC R2, 3, R4 stores into register R4 the result of adding the constant 3 to the contents of register R2; ADDC R0, -1, R2 stores 0x1111 into register R2 (because 0+-1=-1)
a) What values do registers R5 and R6 hold after the following program runs? R1 always holds 1; R5 and R6 are general purpose registers
ADD R1, R1, R5
ADD R1, R5, R6
ADDC R6, 4, R5
HALT
b) Show the concrete encoding of the ADDC R6, 4, R5 instruction
Trending now
This is a popular solution!
Step by step
Solved in 4 steps