Question: Assembly Language ##################################################################### ## PROBLEM 2: min4 ## ## Return the minimum, assuming unsigned integers, of $a0, $a1, $a2, ## and $a3 in $v0. #####################################################################

Assembly Language

##################################################################### ## PROBLEM 2: min4 ## ## Return the minimum, assuming unsigned integers, of $a0, $a1, $a2, ## and $a3 in $v0. ##################################################################### min4: # YOUR CODE HERE jr $ra

######################################## ## TEST PROBLEM 2 ## ########################################

li $a0, 2 jal print_problem_header

li $a0, 1 li $a1, 10 li $a2, 100 li $a3, 1000 jal min4 # min4 = 1 move $a0, $v0 jal print_int jal print_space

li $a0, 1000 li $a1, 10 li $a2, 100 li $a3, 1000 jal min4 # min4 = 10 move $a0, $v0 jal print_int jal print_space

li $a0, 10 li $a1, 1 li $a2, 0 li $a3, 8 jal min4 # min4 = 0 move $a0, $v0 jal print_int jal print_newline

Test problem 2 is what the code will be tested on. It provides inputs to test on.

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!