I am just starting to lean MIPS assembly, and I am trying to write a simple while
loop. It will be equivilent to the C code:
int A[5];
for(i=0;i<5;i++) A[i]=i;
So I know I can use beq
to make a while
loop, but I don't know how to increment the memory address each time to go to the next register. I think maybe the slt
operand may be useful, but I don't know.