SSQR: MOV R4,#00H LP: MOV A,R4 ADD A, R4 ADD A, #01H MOV R6, A MOV A,R2 CLR C SUBB A, R6 MOV R2, A JC RETURN INC R4 SJMP LP RETURN: RET