ORG 0000H
LJMP Main
ORG 00F0H
Main:
MOV A,#00FFH
CLR C
MainLOOP:
CALL DELAY
RLC A
MOV P1,A
SJMP MainLOOP
DELAY:
MOV R7,#0
LOOP:
MOV R6,#0
DJNZ R6,$
DJNZ R6,$
DJNZ R6,$
DJNZ R6,$
DJNZ R7,LOOP
RET
END
ORG 0000H
LJMP Main
ORG 00F0H
Main:
MOV A,#00FFH
CLR C
MainLOOP:
CALL DELAY
RLC A
MOV P1,A
SJMP MainLOOP
DELAY:
MOV R7,#0
LOOP:
MOV R6,#0
DJNZ R6,$
DJNZ R6,$
DJNZ R6,$
DJNZ R6,$
DJNZ R7,LOOP
RET
END