void Keycheck()
{
uchar i;
uchar j;
uchar k=0;
start:
while(start()==0);
EA=1;
dcs=0;
res=0;
for(keynumber=0;keynumber<6;keynumber++)
{
while(KeyNum!=Key[keynumber])
{
CoreExplain();
if(start()==0) goto exit;
}
if(start()==0) goto exit;
}
res=1;
dcs=1;
exit:
EA=0;
dcs=1;
if(i==7)
k=1;
if(k==1)
{
dcs=1;
if(res[j]==1)
reslut=0;
else
reslut=1;
j++;
}
i++;
if(i==8)
i=0;
if(j==8)
j=0;
while(start()==1);
goto start;
} |