Answer to Question #18618 in Assembler for davood farajzade
li $s0, 5& #load 5 into register s0
li $s1, 4& #load 4 into register s1
li $s3, 1& #counter to control how many times we go through loop
add $s4, $s0, $s4
add $s5, $s3, $s5
bne $s5, $s1, MULTIPLY& #if control and s1 aren't equal re-enter loop
j EXIT #otherwise jump to EXIT
li $v0, 1
la $a0, ($s4)
syscall & #system call to print out result
jr $31 #end program
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
You're welcome. We are glad to be helpful.
If you really liked our service please press like-button beside answer field. Thank you!