Double condition in a for loop in MIPS assembly

Question!

I'd like to implement these loops in MIPS assembly but can't work out how to check for double conditions:

for(i=0;i<dim&&dim>1;++i)


for(k=1;k<dim&&j!=i;++k)

i=$t0
dim=$a0
k=$t1


Answers

Managed. For future reference here is how it's done:

if ( i == j 


This video can help you solving your question :)
By: admin