Question: MIPS assembly instructions Write a code to add all elements of an array, consisting of 5 integers (all less than 20) from memory and subtract
MIPS assembly instructions
Write a code to add all elements of an array, consisting of 5 integers (all less than 20) from memory and subtract it from 100. Put your array in memory by using the .data feature of assembly code. Print out each number and then the final result in such a way that it is clear your code works. For example, if the array holds 5, 10, 15, 20, 25 then your code should produce 25 because (100-? (5+10+15+20+25)). Comments on the code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
