MOVE r0,5 MOVE r1,0 LOOP:BNZ r0,END ADD r1,r0 SUB r0,1 JUMP LOOP END:MOVE r9,r1