Question: I need a MIPS program that does the following: WIth an array of positive and negative values such as: array = 10, -5, -30, 15,
I need a MIPS program that does the following: WIth an array of positive and negative values such as: array = 10, -5, -30, 15, 20, -1, -26, -18, 0 and output the sum of the positive numbers in a register called posSum and output the sum of the negative numbers in a register called negSum. The sum of the positive numbers should be 45 and the sum of the negative numbers should be -80
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
