Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. (10 points) Suppose register i (i s 12) is initialized to have a value of i (e.g.r0 = 0,r1=1, 12 = 2, 13 =

image text in transcribed
6. (10 points) Suppose register i (i s 12) is initialized to have a value of i (e.g.r0 = 0,r1=1, 12 = 2, 13 = 3, etc.). Assumes the main stack (MSP) stack is used. In addition, in the interrupt handler, if LR - OxFFFFFFF9, then the main stack (MSP) is used. If LR - OxFFFFFFFD, then the Process Stack (PSP) is used. When the interrupt occurs, the program status register (PSR) - Ox00000020, PC = 0x08000020, LR =0x08000180, SP = 0x20001000. SysTick_Handler PROC PUSH {na,r5, 6) ADD re, re, #1 ri, ri, #1 ADD r2, r2, #1 r3, r3, 1 r4, r4, #1 r5, r5, #1 r6, r6, #1 ADD r7, r7, #1 r8, r8, #1 r9, r9, 61 rie, r10, 81 rii, r11, #1 ADD r12, 112, 61 {r4, 5, 6) ADD ADO ADD ADD ADD ADD ADD ADD ADD POP BX LR ENDP What are the values of the following registers immediately after the interrupt exits? RO R1 R2 R3 R4 RS R6 R7 R8 R9 R10 R11 R12 PC LR SP PSR 6. (10 points) Suppose register i (i s 12) is initialized to have a value of i (e.g.r0 = 0,r1=1, 12 = 2, 13 = 3, etc.). Assumes the main stack (MSP) stack is used. In addition, in the interrupt handler, if LR - OxFFFFFFF9, then the main stack (MSP) is used. If LR - OxFFFFFFFD, then the Process Stack (PSP) is used. When the interrupt occurs, the program status register (PSR) - Ox00000020, PC = 0x08000020, LR =0x08000180, SP = 0x20001000. SysTick_Handler PROC PUSH {na,r5, 6) ADD re, re, #1 ri, ri, #1 ADD r2, r2, #1 r3, r3, 1 r4, r4, #1 r5, r5, #1 r6, r6, #1 ADD r7, r7, #1 r8, r8, #1 r9, r9, 61 rie, r10, 81 rii, r11, #1 ADD r12, 112, 61 {r4, 5, 6) ADD ADO ADD ADD ADD ADD ADD ADD ADD POP BX LR ENDP What are the values of the following registers immediately after the interrupt exits? RO R1 R2 R3 R4 RS R6 R7 R8 R9 R10 R11 R12 PC LR SP PSR

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Birth Of American Accountancy

Authors: Peter L. McMickle, Paul H. Jensen

1st Edition

0367534681, 9780367534684

More Books

Students also viewed these Accounting questions