Question: 7. Suppose register i(i12) is initialized to have a value of i( e.g. r=,r1=1,r2= 2,r3=3, etc.). Assume the main stack (MSP) is used. Also, in

 7. Suppose register i(i12) is initialized to have a value of

7. Suppose register i(i12) is initialized to have a value of i( e.g. r=,r1=1,r2= 2,r3=3, etc.). Assume the main stack (MSP) is used. Also, in the interrupt handler, if LR=0xFFFFFFF9, then the main stack (MSP) is used. If LR=0xFFFFFFFD, then the process stack (PSP) is used. The program status register (PSR) =000000020,PC= 00800002, and LR=02000802, when the interrupt occurs. (1) Show the stack content immediately before the PUSH instruction runs. Suppose the stack pointer SP (i.e., MSP in this case) was 020000600 immediately before the system timer interrupt occurs. (2) What are the values of these registers (RQ-R12, LR, SP, and PC) immediately after the interrupt exits

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 Databases Questions!