I made a program for multiplication. But the problem is the condition for ending the loop is not working properly. What is the possible reason for this weird behavior.
The problem is under Loop label..
.text
main:
li $t0,1
li $t1,2
li $t2,3
li $t3,4
li $v0,5
syscall
move $s0,$v0
beq $s0,$t2,MULT
MULT:
li $v0,5
syscall
move $s5,$v0
li $v0,5
syscall
move $s6,$v0
move $t5,$s6
Loop:
add $a0,$s5,$s5
addi $t5,$t5,1
li $v0,1
syscall
bne $t5,$s6, Loop
j EXIT
EXIT:
li $v0,10
syscall
Thanks