Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 1. Address Code a. After executing BL in main function main PROC PC-( LR = ( 0x00000100 0x00000104 BL sub1 b After execu ting BL in subl function ENDP PC-( LR subl PROC 0x00000150 PUSH LR c. After executing BX in subl function 0x00000164 0x00000168 0x0000016C BL sub2 POP LR) BX LR ENDP PC-( LR = ( 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 e. Afte r executing BX in sub2 function PC-( LR = ( f. After execu ting BX in sub3 function sub3 PROC PC( 0x0000018C BX LR ENDP 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 1. Address Code a. After executing BL in main function main PROC PC-( LR = ( 0x00000100 0x00000104 BL sub1 b After execu ting BL in subl function ENDP PC-( LR subl PROC 0x00000150 PUSH LR c. After executing BX in subl function 0x00000164 0x00000168 0x0000016C BL sub2 POP LR) BX LR ENDP PC-( LR = ( 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 e. Afte r executing BX in sub2 function PC-( LR = ( f. After execu ting BX in sub3 function sub3 PROC PC( 0x0000018C BX LR ENDP

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

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

More Books

Students also viewed these Databases questions

Question

Write an elaborate note on marketing environment.

Answered: 1 week ago