Use SPIM to wirite the program !!!! do not use jave or c++ Problem 1: Register t
ID: 3734611 • Letter: U
Question
Use SPIM to wirite the program !!!! do not use jave or c++
Problem 1: Register to Register instructions (50 pts.) Compose a program to do the following: Using the li instruction, load Sto-St3 as follows: [Stol 35, [St1]-20, [$t2]-7, [St3]= 18. Multiply content of register $to by content of St1 and store the result in $s0. Multiply content of register $t2 by content of $t3 and store the result in $s1 Multiply [$s0] by [Ss1] and store the result in $s2. After processing, output the contents of register $s2 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?Explanation / Answer
code:-
start:
li $t0, 20
li $t1,15
li $t2,07
li $t3,18
mult $s0, $t0, $t1
mult $s1,$t2,$t3
li $v0,1
mult $a0, $s0, $s1
syscall
li $v0,10
syscall
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.