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

1. In the box at right, compose a loop program to store the .text value 0x89ab672f in data locations w, x, y, and z. Note that main: 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)? .data w: .word 0 X. y: ord 0 z:.word 0 word 0 1. In the box at right, compose a loop program to store the .text value 0x89ab672f in data locations w, x, y, and z. Note that main: 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)? .data w: .word 0 X. y: ord 0 z:.word 0 word 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
