Maybe a quick fix but Im trying to get a better understanding of Mips and I have been stuck on this problem for a while.
trying to figure out how to branch off when n meets the requirements (1<= n <= 30)
I understand that I can use blez for the stuff less than 1, but how can at the same time check for if its greater than 26?
I thought I could use slt, but I dont understand how to implement it.
Looked at this link to see if slt would help.
just to sum up what Im trying to do:
$t0 = n
$t1 = 1
$t2 = 30
if ($t1 <= $t0 <= $t2) { go to 1stloop }
else ( go to 2ndloop)