Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume the register r0 contains the address of an array A and the register r1 contains the address of an array B. Let's assume these

image text in transcribed

Assume the register r0 contains the address of an array A and the register r1 contains the address of an array B. Let's assume these arrays are each 2 words long and A contains the values: 1.2. As you can see, the address of array B is greater than the addresses of A. The code of the following program is stored below array B: loop: ldr r2, [r0] add r2, r2, r2 str r2, [r1] add r0, r0, #4 add r1, r1, #4 b loop The intention of the programmer is to take each element of array A. do something with it and store the result in the array B. What is the content of array B after the loop has been executed 2 times? What happens when the loop is executed a 3^rd time

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

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions