Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can someone explain what the3 link register is doing I do not understand how 08000118 lr is associated with progam counter is 08000120 When PC

can someone explain what the3 link register is doing I do not understand how 08000118 lr is associated with progam counter is 08000120

image text in transcribed

When PC is 0x08000100 in the following assembly program, the stack pointer (SP) is 0x20002000 Show the value of link register (LR) and the whole stack content when PC 0x08000120 Memory Address 0x08000100 0x08000104 0x08000108 0x08000100 0x08000110 0x08000114 0x08000118 0x08000110 0x08000120 0x08000124 0x08000128 0x08000120 0x08000130 0x08000134 0x08000138 Instruction MOV R0,#2 BL QUAD B ENDL SQ1 PUSH LR) MUL RO, RO BL SQ2 POP P SQ2 PUSH LR) Stack MUL Re, RO POP (PC) QUAD PUSH LR) BL S01 POP TLR BX LR 0x20002000 0x20001FFC 0x08000130 0x20001FF8 ex08000118 0x20001FF4 1 ENDL When PC is 0x08000100 in the following assembly program, the stack pointer (SP) is 0x20002000 Show the value of link register (LR) and the whole stack content when PC 0x08000120 Memory Address 0x08000100 0x08000104 0x08000108 0x08000100 0x08000110 0x08000114 0x08000118 0x08000110 0x08000120 0x08000124 0x08000128 0x08000120 0x08000130 0x08000134 0x08000138 Instruction MOV R0,#2 BL QUAD B ENDL SQ1 PUSH LR) MUL RO, RO BL SQ2 POP P SQ2 PUSH LR) Stack MUL Re, RO POP (PC) QUAD PUSH LR) BL S01 POP TLR BX LR 0x20002000 0x20001FFC 0x08000130 0x20001FF8 ex08000118 0x20001FF4 1 ENDL

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_2

Step: 3

blur-text-image_3

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

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

Write a note on job design.

Answered: 1 week ago

Question

Compute the derivative of f(x)cos(-4/5x)

Answered: 1 week ago

Question

Discuss the process involved in selection.

Answered: 1 week ago

Question

Differentiate tan(7x+9x-2.5)

Answered: 1 week ago