Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem 1: Register to Register instructions (50 pts.) Compose a program to do t

ID: 3734458 • Letter: P

Question

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

.data

.text

addi $t0, $zero,35
addi $t1, $zero,20

mul $s0, $t0,$t1

addi $t2, $zero,7
addi $t3, $zero,18

mul $s1, $t2,$t3

mul $s2, $s1, $s0


li $v0,1
add $a0, $zero,$s2  
syscall