Question: Exercise 1 Let's take another look at Exercise 3 from last week. At the time, we told you to hard code both remote addresses in

Exercise 1
Let's take another look at Exercise 3 from last week.
At the time, we told you to hard code both remote addresses in the local data block - but this is not really very efficient (suppose you had a dozen data values up there ...)
We know that the two remote data values are in contiguof 1 s memory locations (x4000 and x4001), so we ought to be able to just hard-code the first address and then use address arithmetic to get to the next.
So copy your Lab 2 Exercise 3 from last week into the lab3_ex1.asm file in your current directory, but this time use just a single pointer in the local data block, and. FILL the address of the start of the remote
data block (your remote .ORIG). Call the local pointer DATA_PTR.
You already know how to get the first data item from the remote location: how will you get the next? Hint: LDI won't work, because we don't have a pointer to it in the remote memory location. How about LDR? But isn't the base register pointing to the first data value? How can you point to the next?
When you have figured this out, run the code (read the two remote data values, modify them, & store the modified data back to the remote location).
 Exercise 1 Let's take another look at Exercise 3 from last

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!