I fixed the infinite looping issue . . . kind of. Found out that $ra was getting changed at some point, so it was pointing a jr command at itself. Hence, it looped. To fix it, I hard coded a return to the main method. Not a pretty fix, but the program no longer loops.