ORG 0000H
START:MOV R1,#00H
      MOV R2,#10
      MOV DPTR,#TABLE
      CLR P3.3
      SETB P3.4
LP1:  MOV A,R1
      MOVC A,@A+DPTR
      MOV P1,A
      LCALL DELAY
      INC R1
      DJNZ R2,LP1
      CLR P3.4
      SETB P3.3
      MOV R3,#0
      MOV R4,10
LP2:  MOV A,R3
      MOVC A,@A+DPTR
      MOV P1,A
      LCALL DELAY
      INC R3
      DJNZ R4,LP2
      LJMP START
DELAY:MOV R7,#10
DEL1: MOV R6,#200
DEL2: MOV R5,#126
DEL3: DJNZ R5,DEL3
      DJNZ R6,DEL2
      DJNZ R7,DEL1
	  RET
TABLE:DB 3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,67H
      END
