addi r1, r1, 1 add r2, r1, r1 jalr r0, r0, 0 All it does is increment r1 and set r2 to r1*2 in a loop. Told you it was trivial.It comes out as the following for anyone wanting to poke it into memory themselves. A RAM image of it is in the project files...