code unsigned char SMGcode[18]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x80,0xc6,0xc0,0x86,0x8e,0xbf,0xff};
unsigned int s=0;
unsigned int s0_1=0;
unsigned int s1=0;
unsigned int m=0;
void selectHC573(unsigned char n)
{
switch(n)
{
case 5: P2=(P2 & 0x1f) | 0xa0;break;
case 6: P2=(P2 & 0x1f) | 0xc0;break;
case 7: P2=(P2 & 0x1f) | 0xe0;break;
}
}