RG 001BH ;
MOV TH1,R1 ;
MOV TL1,R0 ;
CPL P3.7 ;
RET1 ;
ORG 100H ;
START:MOV TMOD,#10H ;
MOV IE,#88H ;
MOV DPTR,#TAB ;
LOOP:CLR A ;
INC DPTR ;
CLR A ;
MOVC A,@A+DPTR ;
MOV R0,A ;
ORL A,R1 ;
JZ NEXT0 ;
ANL A,R1 ;
CJNE A,#OFFH,NEXT ;
SJMP START ;
NEXT:MOV TH1,R1 ;
MOV TL1,R0 ;
SETB TR1 ;
SJMP NEXT1 ;
NEXT0:CLR TR1 ;
NEXT1:CLR A ;
INC DPTR ;
MOVC A,@A+DPTR ;
MOV R2,A ;
LOOP1
CALL D200 ;
DJNZ R2,LOOP1 ;
INC DPTR ;
D200:MOV R4,#81H ;
D200B:MOV A,#OFFH ;
D200A
EC A ;
JNZ D200A ;
DEC R4 ;
CJNZ R4,#00H,D200B ;
RET
TAB: DB OFEH,25H,02H,OFEH,25H,02H; DB OFEH,84H,02H,OFEH,84H,02H;
DB OFEH,84H,04H,OFEH,25H,04H; DB OFEH,25H,02H,OFEH,84H,02H;
DB OFEH,OCOH,04H,OFEH,OCOH,04H; DB OFEH,98H,002H,OFEH,84H,02H;
DB OFEH,57H,08H,00H,00H,04H; DB OFFH,OFFH;
END.