subject

.text main: # Get numbers from user li $v0, 4 # Load 4=print_string into $v0 la $a0, p1 # Load address of first prompt into $a0 syscall # Output the prompt via syscall li $v0, 5 # Load 5=read_int into $v0 syscall # Read an integer via syscall add $s0, $v0, $zero # Copy from $v0 to $s0 li $v0, 4 # Load 4=print_string into $v0 la $a0, p2 # Load address of second prompt into $a0 syscall # Output the prompt via syscall li $v0, 5 # Load 5=read_int into $v022 syscall # Read an integer via syscall add $s1, $v0, $zero # Copy from $v0 to $s1 # Compute minimum add $a0,$s0,$0 # Put argument ($s0) in $a0 add $a1,$s1,$0 # Put argument ($s1) in $a1 jal minimum # Call minimum function, result in $v0 # Output results add $a0, $v0, $zero # Load sum of inupt numbers into $a0 li $v0, 1 # Load 1=print_int into $v0 syscall # Output the prompt via syscall # Exit li $v0, 10 # exit syscall # minimum function to compute min($a0, $a1): || |Put your code here| || return: jr $ra # Return to call

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 00:30
Afiling system in which an intermediary source of reference, such as a file card, must be consulted to locate specific files is called a(n) system. a. shelf filing b. direct filing c. indirect filing d. shingling
Answers: 1
question
Computers and Technology, 24.06.2019 09:00
Technician a says that a new replacement part is always good. technician b says that sometimes recent repair work will be the cause of a complaint. who is correct? a. both technicians a and b b. technician a c. technician b d. neither technician a nor b
Answers: 3
question
Computers and Technology, 24.06.2019 17:30
What is the main difference between cloud computing and saas? cloud computing is a platform, and saas is software. cloud computing is software, and saas is a platform. cloud computing is a service, and saas is software. cloud computing is a service, and saas is a platform.
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Anewly established internet company with 40 employees needs your advice. they are looking for a collaboration tool and have narrowed their choices to gotomeeting, webex, and my web conferences. after reading the information presented in this chapter and other sources, prepare a two- page document ( double spaced) that includes two advantages and two disadvantages of each tool. which one is your final recommendation? why did you choose that tool over the other two?
Answers: 3
You know the right answer?
.text main: # Get numbers from user li $v0, 4 # Load 4=print_string into $v0 la $a0, p1 # Load addre...
Questions
question
Mathematics, 23.07.2021 23:30
question
Mathematics, 23.07.2021 23:40