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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started