Question: QUESTION 1 Consider the interrupt mechanism discussed in class with the following modification. Two new machine instructions are provided: RTIpc and RTIpsw. These are privileged

 QUESTION 1 Consider the interrupt mechanism discussed in class with the

QUESTION 1 Consider the interrupt mechanism discussed in class with the following modification. Two new machine instructions are provided: RTIpc and RTIpsw. These are privileged instructions. When RTipe is executed, it pops out the top value in the control stack and loads it onto the PC register. When Tipsw is executed, it pops out the top value from the control stack and loads it onto the PSW register When an interrupt occurs, as discussed in class, PC and PSW values are pushed onto the control stack. Assume that they are pushed in the right order so that PC is at the top and PSW is just below it. Assume that the logical and physical addresses are same. There are no other changes to the interrupt mechanism that we discussed in class. Suppose we take a correctly working service routine written along the lines discussed in class. Now we replace its RTI instruction by the two instruction sequence: RTipe RTipsw Will the new code work correctly? Explain in LESS THAN 100 WORDS

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!