Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access with AI-Powered 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