Show all work please. <3 Compose a program to do the following: Using the li ins
ID: 3680413 • Letter: S
Question
Show all work please. <3
Compose a program to do the following: Using the li instruction, load $t0-$t3 as follows: $t0 = 25, $t1 = 15, $t2 = 7, $t3 = 18. Multiply register $t0 by $t1 and store the result in $s0. Multiply register $t2 by $t3 and store the result in $s1. Multiply $s0 by $s1 and store the result in $a0. After processing, output the contents of register $a0 to the console using the appropriate system call. End the program with syscall 10. You need NO data section, as there are no data declarations. What is the answer shown on the console in decimal?Explanation / Answer
.text
.global_start
_start;
li $t0,25
li $t1,15
li $t2, 7
li $t3,18
mul $s0,$t0,$t1
mul $s1, $t2, $t3
mul $a0,$s0,$s1
li $a0,10
syscall
#
result : 0x047250
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.