Question: 1. In the box at right, compose a loop program to store the value 0x89ab672f in data locations w, x, y, and z. Note

1. In the box at right, compose a loop program to store 

1. 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? main: 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)? .text .data W: .word 0 X: .word 0 y: .word 0 Z: .word 0

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!