I am trying to get this simple while loop to work. I'm using a textbook and I'm not sure what I'm missing cause I copied everything. only thing I added is the "main:" on top
main:
sll $t1, $s3, 2
add $t1,$t1,$s6
lw $t0, 0($t1)
bne $t0,$s5,Exit
Loop: addi $s3,$s3, 1
add $t1, $t1, 4
lw $t0, 0($t1)
beq $t0,$s5,Loop
Exit:
I'm using QtSpim simulator and I'm getting the error an exception error as soon as the line is run "lw $t0, 0($t1)"