MIPS assembly for a simple for loop
Your loop goes from 0 to 14, so your bgt instruction should be: bgt $t0,14,exit
I think.
.
You don't set j ($t0) to zero before the loop.
Your loop goes from 0 to 14, so your bgt instruction should be: bgt $t0,14,exit
I think.
.
You don't set j ($t0) to zero before the loop.