Question: MIPS Assembly language. Please debug code. I am attempting to sort the array in ascending order. However I am only comparing two elements at a
Median of 100 element integer array 2 3 # This routine finds the median of a 100 element array. # The result is returned in $2. 5 # 5 February 2018 Lindsey Ouy> 7 8 data 9 Array:.alloc 100 10 11 .text 12 13 Median: addi s1, so, Array 14 15 16 # your code goes here 17 Main: addi $2, $0, 0 #initialize loop x-0 18 19 20 Loop!: addi $12, $0, 400 #set upper limit, x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
