I need to translate this C code to MIPS assembly. Here is the C code:
int tmp = 0; for (int j = 0; j < 15; ++j) tmp = tmp * 2 + 3
Th
Your loop goes from 0 to 14, so your bgt instruction should be: bgt $t0,14,exit I think.
bgt $t0,14,exit
.