Quote Originally Posted by OReubens View Post
What you're describing is a logic error. So get your debugger and step through the code monitoring the loop variables and figure out what's wrong.
It's unrealistic to expect someone else to do your debugging for you.


This isn't a question about how to interact with the OS, or how to deal with the system nor is it even specific about assembly. you could just as well have had a problem in C++, and we would have told you the same. "use your debugger".

With a C++ problem you just might have had a bit more luck that someone with enough skill happens to spot the logic error right away and decides to post about it.

But this is Assembly, a subforum that doesn't get a lot of attention as it is, and you're asking this for MIPS, a processor not a lot of people are familiar with in this world vastly dominated by x86 and ARM. (I wouldn't place mips even in the top 10 of most popular chip architectures).
Right, I know from going through it step by step (prob well over a 100 times) that it is a logic error, but anytime I try to edit something with in the only sections of the code I can change it doesn't quite work. The problem has to be within the bit of code I was told not to edit and it was written by the instructor. It is a pain to try and figure out someone else's logic error over my own.