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, 22.06.2019 03:20
Which of these is a benefit of social networking? oa. hiding your true identity from friendsob. avoiding talking to people in personoc. spending time with friends instead of studyingod. connecting with new people
Answers: 2
question
Computers and Technology, 22.06.2019 06:30
Requirement types discussed during software development include functional and color scheme nonfunctional and code style constraint and nonfunctional fashionable and functional.
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
The next button in the review section shows the next available comment. next slide with no comment. previous comment. edited comment.
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Which best describes the condition under which the unicode output is the same as plain text ?
Answers: 1
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, 22.09.2021 06:00
question
Mathematics, 22.09.2021 06:00
question
Mathematics, 22.09.2021 06:00
question
Mathematics, 22.09.2021 06:10
question
Mathematics, 22.09.2021 06:10
Questions on the website: 13722367