Question: Please debug code. Don't use pseudo commands 4# 5 # This program computes the maximum magnitude for the elements of array A E # and

Please debug code. Don't use pseudo commands
 Please debug code. Don't use pseudo commands 4# 5 # This

4# 5 # This program computes the maximum magnitude for the elements of array A E # and stores the value of the element with maximum magnitude at the label maxmag: 7 8 9 .data 10 # DO NOT c hange the following three labels (you may change the initial values): 11 A: .word 1, -14, 9, 1o, -11, 6, 56, -60, 78, 100, 4, 5, o, 3, -5, 9 12 13 maxmag: .alloc 1 14 15 .text 16 17 main: addi $11, $0,15 18 19 20 lui $1, 4097 ori $9, i, o 1w $16,0 ($9) 21 addi $9,$9,4 addi $11, $11,-1 23 24 25 loop: 1w 12,0 (St1) 26 27 sit 1, $12, 16 bne 1,co, next 1w 916,0(12) 28 29 30 31 next: addi 11,011,-1 32 addi $9,$9,4 bne 11,co,loop 34 35 sw $16,maxmag ($0) 36 # return to OS 37 31 30 40

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 Databases Questions!