Question: Please do all part. There are two part: Sum of smaller than 15 and sum of greater than 12. 3-Write a MIPS assembly program to
Please do all part. There are two part: Sum of smaller than 15 and sum of greater than 12.

3-Write a MIPS assembly program to initialize an array that has five elements by storing register $50 in the first element of the array, register $81 in the second element, register $s2 in the third element, register $s3 in the fourth element, and register $s4 in the fifth element. Assume $s0=10, $s1=16, $s2=17, $s3=$13, and $s4= 14. Use a loop to calcu- late sum of all elements in the array, then write the result as the sixth ele- ment of the array. Use another loop to calculate sum of all elements that are smaller 15 than and sum of the elements that are greater than 12. Finally, display the results, I Please explain each instruction with a comment. Please submit your source code and a screenshot that shows sum of all ele- ments that are smaller 15 than and sum of the elements that are greater than 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
