Question: Q 5 ) ( 6 Points ) Based on the debug window figure on the next page, Answer the following: a ) ( 1 Point

Q5)(6 Points) Based on the debug window figure on the next page, Answer the following:
a)(1 Point) How can you identify from the image below that the processor is servicing an interrupt?
when we entering an interlupt
XPSR
b)(1 Point) What is the exception number that is being serviced (you can use hex value)?
c)(1 Point) Based on the status reflected below, if the processor is at the end of an interrupt service routine, can you tell if a subroutine has been serviced inside the interrupt? If yes, how?
d)(1 Point) What address is the stack pointer pointing to?
RIB13(SP)
e)(1 Point) Assuming that the ISR completed executing its code and now needs to return. What value from below needs to be loaded in the PC for the architecture to return from the interrupt service routine? Write the assembly code that achieves that.
f)(1 Point) Fill in the table on the next page to reflect the values of all registers after the return from interrupt sequence completes. Keep in mind that the processor stores the following registers when entering an interrupt XPSR, Return address, LR (R14), R12, R3, R2, R1, R0 respectively. The SP usage will not change.
Q 5 ) ( 6 Points ) Based on the debug window

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