  		ORG 0000H
START:		MOV DPTR,#TABLE
LOOP:		CLR A
			MOVC A,@A+DPTR
			CJNE A,#01H,LOOP1
			SJMP START
LOOP1:		MOV P1,A
			MOV R3,#20
			LCALL DELAY
			INC DPTR
			SJMP LOOP
DELAY:		MOV R4,#20
D1:			MOV R5,#248
			DJNZ R5,$
			DJNZ R4,D1
			DJNZ R3,DELAY
			RET
TABLE:		DB 01H,02H,04H,08H
			DB 10H,20H,40H,80H
			DB 01H,02H,04H,08H
			DB 10H,20H,40H,80H		
			DB 80H,40H,20H,10H
			DB 08H,04H,02H,01H
            DB 80H,40H,20H,10H
			DB 08H,04H,02H,01H
			DB 00H, 0FFH,00H, 0FFH
            DB 00H, 0FFH,00H, 0FFH
			DB 01H
			END
