End of a loop - ps...endloop block.
endloop must follow the last instruction of a loop - ps block.
loop aL, i3 add r1, r0, c2[ aL ] endloop