quiz حل الأسئلة الجامعية manage_search الأرشيف

تم الحل ✓
categoryهندسة حاسوب وشبكات schoolبكالوريوس event_available2026-07-13

السؤال

Transcribed Image Text:

6. (5 points) Suppose register i (i≤12) is initialized to have a value of i (e.g. r0-0, r1-1,2-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- 0xFFFFFFFD, then the Process Stack (PSP) is used. When the interrupt occurs, the program status register (PSR)-0x00000020, PC-0x08000020, LR -0x08000180, SP-0x20001000. SysTick Handler PROC PUSH (r4,rs,r6) ADD re, re, #1 ADD r1, ri, #1 ADD r2, r2, #1 ADD r3, r3, #1 ADD r4, r4, #1 ADD r5, r5, #1 ADD r6, r6, #1 ADD r7, r7, #1 ADD r8, r8, #1 ADD r9, 19, #1 ADD r10, r18, #1 ADD r11, r11, #1 ADD r12, r12, #1 POP (r4,15,16) BX LR ENDP What are the values of the following registers immediately after the interrupt exits? Re R1 1 file deleted R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 PC LR SP PSR UNDO

check_circle الجواب — حل مفصل خطوة بخطوة

hourglass_top