

MOV R7,#00H ;put value of 0 in register R7 
LOOPA: 
INC R7 ;increase R7 by one (R7 = R7 +1) 
MOV A,R7 ;move value in R7 to Accumlator (also known as A) 
CJNE A,#0FFH,LOOPA ;compare A to FF hex (256). If not equal go to LOOPA 
RET ;return to the point that this routine was called from 

