#include<reg51.h>
#define uchar unsigned char
#define uint unsigned int
uchar code tab1[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
uchar code tab2[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
uchar code tab3[]={0x01,0x03,0x07,0x0f,0x1f,0x3f,0x7f,0xff};
uchar code tab4[]={0xfe,0xfc,0xf8,0xf0,0xe0,0xc0,0x80,0x00} ;