Question: Write a MIPS assembly program which contains the following data statements. . data Data: . word 8 , 1 2 7 , 9 8 3
Write a MIPS assembly program which contains the following data statements.
data
Data: word
Value: byte
Your program should read the words labeled "Data" from memory and sum them. Likewise, read the five bytes labeled "Value" from memory and display their sum also. When you print this sum, please use code for syscall. When you load bytes from the memory, please use lbu Load Byte Unsigned instruction.
What happens if the word sum is stored in memory as a byte then retrieved and displayed?
What happens if the byte sum is stored in memory then retrieved and displayed?
There are at least different answers for the sum of bytes and each may be correct. Discuss the conditions under which each result is correct and document your results in your program's comments section.
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
