Question: In the box at right, compose a loop program to store the value 0 x 8 9 ab 6 7 2 f in data locations

In the box at right, compose a loop program to store the
value 0x89ab672f in data locations w, x, y, and z. Note that
the data words w-z are declared with value 0, as a place
holders for each number. Remember: the program MUST
be a loop! That means that you must write a loop that will
execute four times to store the data in locations w-z. End
the program as usual with a syscall 10. Hint: This would
be a good program to use the branch instruction beqz.
After completing the program answer these questions:
1.1. What are the memory addresses of w, x, y, z?
1.2. How do you decide when you are done (i.e., how do you
know when you have gone through the loop four
times)?

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 Programming Questions!