Question: 1. (20 points) Instruction Processing Stages. Below is a table showing the stages for the execution of the general pushq r instruction in the six

1. (20 points) Instruction Processing Stages. Below is a table showing the stages for the execution of the general pushq r instruction in the six stage simplified Y-86 sequential architecture. Recall, pushq r increments % rsp and places the value in register r onto the stack. You may assume that the pushq instruction is at address alpha, and that %rsp initially contains the address beta. a. (5 points) In the third column of the table below, fill in the internal values when r is % rsp b. (5 points) When r is %rsp, which value of %rsp is pushed onto the stack? Is it the old value or the updated value? Briefly explain as this is implementation dependent. c. (5 points) How could you modify the system so that, in the particular case where r is %rsp, the opposite of what you did in part (b) (either the old or the updated %rsp value) is pushed onto the stack? Show this in the last column below d. (5 points) How would the change in part (c) above affect the general case? STAGE | General: pushq r | Specific: pushq %rsp | Alternate Implementation pushq %rsp Fetch op:fun
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
