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 21:00
The average cost of one year at a private college in 2012-2013 is $43,289. the average grant aid received by a student at a private college in 2012-2013 is $15,680.   what is the average student contribution for one year at a private college in 2012-2013?
Answers: 3
question
Computers and Technology, 23.06.2019 18:00
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Ais a built in formula in spread spread a is any math process such as addition or subtraction. options are function and operation
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Write an assembly language program to input a string from the user. your program should do these two things: 1. count and display the number of words in the user input string. 2. flip the case of each character from upper to lower or lower to upper. for example if the user types in: "hello there. how are you? " your output should be: the number of words in the input string is: 5 the output string is : hello there. how are you?
Answers: 2
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
History, 23.10.2020 20:10
question
Mathematics, 23.10.2020 20:10
Questions on the website: 13722361