while (1)
{
if (cnt==200)
{
cnt=0;
j--;
chushi[0]=shumaguan[j/1000%10];
chushi[1]=shumaguan[j/100%10];
chushi[2]=shumaguan[j/10%10];
chushi[3]=shumaguan[j%10];
}
}
}
void Tnterruptime0()interrupt 1
{
cnt++;
TH0=0xEC;
TL0=0x78;
switch(m)
{
case 0:P0=chushi[0];P2=~0x01;m++;break;
case 1:P0=chushi[1];P2=~0x02;m++;break;
case 2:P0=chushi[2];P2=~0x04;m++;break;
case 3: P0=chushi [3];P2=~0x08;m=0;break;