Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4. Complete the following assembly code that loads a word of memory at location 100016 with 0, the next location at 100216 with 2, the
4. Complete the following assembly code that loads a word of memory at location 100016 with 0, the next location at 100216 with 2, the next location 100416 with 4, and so on up to and including location 102E16. Note that your code should be stored at location 0xAA of the program memory. (10 points) ORG MOVE. L // address in which the program is stored // DO contains the loading word to the memory // A0 points at the locationf the word in memory // load DO to the specified memory location // update the next word to be loaded to memory /7 update the address for the next word // compare DO with its supposed final value /1 if not equal, branch LOOPO MOVEA.L LOOP! MOVE" %D0, LOOP2 ADD. I LOOP3 %A0 4. Complete the following assembly code that loads a word of memory at location 100016 with 0, the next location at 100216 with 2, the next location 100416 with 4, and so on up to and including location 102E16. Note that your code should be stored at location 0xAA of the program memory. (10 points) ORG MOVE. L // address in which the program is stored // DO contains the loading word to the memory // A0 points at the locationf the word in memory // load DO to the specified memory location // update the next word to be loaded to memory /7 update the address for the next word // compare DO with its supposed final value /1 if not equal, branch LOOPO MOVEA.L LOOP! MOVE" %D0, LOOP2 ADD. I LOOP3 %A0
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started