Question: edit this code to work for 5 variables it should be able to Input: 5 2 7 8 3 1 9 9 4 and Output:

edit this code to work for 5 variables it should be able to Input: 527831994 and Output: 431527899 the code: addi $t0, $zero, 8200 # Output loc
BegLoop:
addi $t6, $zero, 8192 # Input ready?
lw $t5,0($t6)
beq $t5, $zero, NoInput
addi $t6, $zero, 8196 # Input loc
lw $t1,0($t6)
addi $t2, $zero, 1
sw $t2,0($t0) # Output to screen
mul $t2, $t2, $t1 # Times Input
sw $t2,0($t0) # Output to screen
mul $t2, $t2, $t1 # Times Input
sw $t2,0($t0) # Output to screen
mul $t2, $t2, $t1 # Times Input
sw $t2,0($t0) # Output to screen
j BegLoop
NoInput: it should meet the following requirments: Create an algorithm to sort a list of up to 5 numbers. (Note that you can use brute force to search for the smallest number in the list each time through the loop or implement a sorting algorithm.)
Implement the program in MIPSzy Assembly language.
Input works by placing the value to be read in from the input box in memory location 8196 and a 1 in memory location 8192. If there is no more input a 0 will be placed in memory location 8192. as a space delimited list.
Results should be written to memory location 8200 which will cause them to be written to the output window. it also needs to be able to run on zybook and in the comments of the mipzy code add the java or c++ equivelent of the mipszy code

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!