Question: 8 . 8 LAB: Find max in an array Given an array of a specific number of integers, write a program that finds the largest

8.8 LAB: Find max in an array
Given an array of a specific number of integers, write a program that finds the largest integer and store the result in register $t2. Assume $t0 stores the memory location of the first element of the array, and $t1 stores the number of integers in the array.
Ex: If $t0 and $t1 are initialized in the simulator as 4000 and 5, and the content of the given array is:
AddressesData4000640044400884012940167
the result is stored in $t2:
RegistersData$t29
Note: Use the '+' button under the Registers and Memory display to initialize $t0, $t1, and the memory locations of the given array.
i dont think they recognize like : li, done,end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!