Question: a. (1 pt) Define the stored program concept. Consider a proposed instruction inc. This instruction treats a word in memory as an integer and adds
a. (1 pt) Define the stored program concept.
Consider a proposed instruction inc. This instruction treats a word in memory as an integer and adds 1 to it. For example, inc 8(t1) would add 1 to the value at the address t1+8. (You could think of this as adding one to the third element of the array starting at t1.) b. (1 pt) If inc were to be added to the RISC-V instruction set, what is the most appropriate instruction format? Explain in one sentence.
c. (2 pts) What is the shortest sequence of RISC-V instructions that performs the same operation as inc 8(t1)?
d. (1 pt) inc should almost certainly not be added to the instruction set. In one sentence, why not?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
