comment the code a) Write a code that performs Z X Y. You need to call a subrout
ID: 3553430 • Letter: C
Question
comment the code
Explanation / Answer
TIMES:
=========
li $a0 a
li $a1 b
jal TIMES
add $t1 $0 $v0
syscall
SQUARE:
li $a3 a
add $a4 $0 $a3
jal TIMES
add $t2 $0 $v0
jr $ra
FOUR:
jal SQUARE
add $t3 $0 $v0
move $t3 $a5
jal SQUARE
add $t4 $0 $v1
move $t3 $a6
jal TIMES
add $t5 $0 $v0
syscall
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.