ORG 00H
LJMP START
ORG 0BH
LJMP COUNTER
ORG 30H
MOV SP,#50H
MOV A,TMOD
ANL A,#11110000B
ORL A,#00000000B
MOV TMOD,A
MOV THO,(8192-100)/32
MOV TL0,(8192-100).MOD.32
CLR TF0
SETB IE.1
SETB IE .7
SETB . TR0
MOV A,#0
L1:
NOP
JMP L1
COUNTER:
CRL IE.1
MOV TH0,#(8192-100)/32
MOV TL0,#(8192-100).MOD.32
CJNE A,#0,COUNT1
CLR P3.5
MOV A,#1
SETB IE.1
RETI
COUNTI:
SETB P3.5
MOV A,#0
SETB IE.1
RETI
END