Question: 1. Consider the following code and its address mapping. Assume that we are running the code on a Cortex-M3 processor, which uses Thumb mode only.

1. Consider the following code and its address mapping. Assume that we are running the code on a Cortex-M3 processor, which uses Thumb mode only. Fill the PC and LR register values in each specified condition Address Code a. After executing BL in main function main PROC PC- BL sub1 0x00000100 0x00000104... b. After executing BL in subl function ENDP PC-( subl PROC 0x00000150 PUSH LR c. After executing BX in subl function 0x00000164 0x00000168 0x0000016C BL sub2 POP LR) BX LR ENDP d. After executing BL in sub2 function sub2 PROC PC 0x00000174 PUSH (LR) 0x0000017C 0x00000180 0x00000184 0x00000188 BL sub3 STR RO, [R3] POP LR BX LR ENDP fter executing BX in sub2 function f. After executing BX in sub3 function sub3 PROC 0x0000018C BX LR ENDP 1. Consider the following code and its address mapping. Assume that we are running the code on a Cortex-M3 processor, which uses Thumb mode only. Fill the PC and LR register values in each specified condition Address Code a. After executing BL in main function main PROC PC- BL sub1 0x00000100 0x00000104... b. After executing BL in subl function ENDP PC-( subl PROC 0x00000150 PUSH LR c. After executing BX in subl function 0x00000164 0x00000168 0x0000016C BL sub2 POP LR) BX LR ENDP d. After executing BL in sub2 function sub2 PROC PC 0x00000174 PUSH (LR) 0x0000017C 0x00000180 0x00000184 0x00000188 BL sub3 STR RO, [R3] POP LR BX LR ENDP fter executing BX in sub2 function f. After executing BX in sub3 function sub3 PROC 0x0000018C BX LR ENDP
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
