Question: use MIPS write a bubble sort code, but the main block looks like this: main: jal print jal sort jal print li $v0, 10 syscall

use MIPS

write a bubble sort code, but the main block looks like this:

main:

jal print

jal sort

jal print

li $v0, 10

syscall

we don't need input, there have "array:.word 23,423,22,-23,56,34,-1,2,3,4"

the output we need is like:

-23

-1

2

...

each number must have their own line.

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!