本帖最后由 hceng 于 2014-1-7 16:53 编辑
if((KeyHenIO&0xFF)!=0xFF)
{
ShuCode=0xfe;
for(j=0;j<5;j++)
{
KeyShuIO=ShuCode;
if((KeyHenIO&0xFF)!=0xFF)
{
HenCode=~KeyHenIO;
for(i=0;i<7 ;i++)
{
HenCode>>=1;
if(CY==1)
{
bKeyCurrentBuffer[bKeyCurrentCount]=bKeyShuNum[j]+i;//键值送按键缓冲区
bKeyCurrentCount++;//按键计数器加1指向下个按键
}
}
ShuCode=(ShuCode<<1)|0x01;
}
else ShuCode=(ShuCode<<1)|0x01;
} |