Question: Mars mips assembly Write a MIPS function (method) to search through an array of integers to find the sum of the positive even numbers and

Mars mips assembly
Write a MIPS function (method) to search through an array of integers to find the sum of the positive even numbers and the sum of the negative odd numbers of an array. The address of the array will be passed using the register $a0 and the number of elements of the array will be passed using the register $a1. The sum of the positive even numbers should be in $v0 and the sum of the negative odd numbers should be in $v1. The function (method) should put the two arguments on the stack. All four resisters $a0, $a1, $vO and $v1 should be placed on the stack. Use the following code to start your program: data array: word 4, 10, 1, -1001, 6, 9 text main: "put your code below here jal peno exit peno: #put your code below this line Comment each line of assembly language including the starter code I supplied. HTMI Editor
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
