xor r1,r1 loop: // do something with r1 inc r1 cmp r1,N jne loop