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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:30, miguel3maroghi
This technology is used to produce high-quality documents that look good on the computer screen and in print. wiki presentation paint desktop publishing
Answers: 3
image
Computers and Technology, 22.06.2019 09:00, starwarsfan1975
Meenu wants to create a high quality drawing in a variety of colours. which device should she use for the same?
Answers: 1
image
Computers and Technology, 23.06.2019 09:00, mimithurmond03
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
image
Computers and Technology, 24.06.2019 03:00, SiegeHatake4534
Will do anything for brainlest so can you guys me out i will try my best to you out
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 in other subjects:

Konu
Mathematics, 14.05.2021 17:00
Konu
Mathematics, 14.05.2021 17:00