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
Let's take another look at Exercise 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 s memory locations and so we ought to be able to just hardcode the first address and then use address arithmetic to get to the next.
So copy your Lab Exercise from last week into the labexasm 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 DATAPTR
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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
