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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started