C51程 序 :# i nclude sbit gate11=P3^0;sbit gate12=P3^1;#define unit unsigned int#define uchar unsigned charuchar data BUFFER[]={0,0,0,0,1,1,7};uchar data M[]={31,28,31,30,31,30,31,31,30,31,30,31};uchar code NUM1[] ={0x80,0x7F,0xC0,0xFF,0x40,0x90,0x40,0x8C,// -0-0x40,0x82,0xC0,0xFF,0x80,0x7F,0x00,0x00,0x00,0x00,0x00,0x81,0x80,0x81,0xC0,0xFF,// -1-0xC0,0xFF,0x00,0x80,0x00,0x80,0x00,0x00,0x80,0xE0,0xC0,0xF0,0x40,0x98,0x40,0x8C,// -2-0x40,0x86,0xC0,0xC3,0x80,0xC1,0x00,0x00,0x80,0x40,0xC0,0xC0,0x40,0x84,0x40,0x84,// -3-0x40,0x84,0xC0,0xFF,0x80,0x7B,0x00,0x00,0x00,0x0C,0x00,0x0E,0x00,0x0B,0x80,0x89,// -4-0xC0,0xFF,0xC0,0xFF,0x00,0x88,0x00,0x00,0xC0,0x47,0xC0,0xC7,0x40,0x84,0x40,0x84,// -5-0x40,0x8C,0x40,0xFC,0x40,0x78,0x00,0x00,0x00,0x7F,0x80,0xFF,0xC0,0x84,0x40,0x84,// -6-0x40,0x84,0x00,0xFC,0x00,0x78,0x00,0x00,0xC0,0x00,0xC0,0x00,0x40,0xF0,0x40,0xF8,// -7-0x40,0x0C,0xC0,0x07,0xC0,0x03,0x00,0x00,0x80,0x7B,0xC0,0xFF,0x40,0x84,0x40,0x84,// -8-0x40,0x84,0xC0,0xFF,0x80,0x7B,0x00,0x00,0x80,0x03,0xC0,0x87,0x40,0x84,0x40,0x84,// -9-0x40,0xC4,0xC0,0x7F,0x80,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x63,// -:-0x00,0x63,0x00,0x00,0x00,0x00,0x00,0x00,};uchar code NUM2[]={0x00,0x00,0x7f,0x80,0xff,0xc0,0x82,0x40,// -0-0x8c,0x40,0x90,0x40,0xff,0xc0,0x7f,0x80,0x00,0x00,0x00,0x00,0x20,0x40,0x60,0x40,// -1-0xff,0xc0,0xff,0xc0,0x00,0x40,0x00,0x40,0x00,0x00,0x41,0xc0,0xc3,0xc0,0x86,0x40,// -2-0x8c,0x40,0x98,0x40,0xf0,0xc0,0x60,0xc0,0x00,0x00,0x40,0x80,0xc0,0xc0,0x88,0x40,// -3-0x88,0x40,0x88,0x40,0xff,0xc0,0x77,0x80,0x00,0x00,0x0c,0x00,0x1c,0x00,0x34,0x00,// -4-0x64,0x40,0xff,0xc0,0xff,0xc0,0x04,0x40,0x00,0x00,0xf8,0x80,0xf8,0xc0,0x88,0x40,// -5-0x88,0x40,0x8c,0x40,0x8f,0xc0,0x87,0x80,0x00,0x00,0x3f,0x80,0x7f,0xc0,0xc8,0x40,// -6-0x88,0x40,0x88,0x40,0x0f,0xc0,0x07,0x80,0x00,0x00,0xc0,0x00,0xc0,0x00,0x83,0xc0,// -7-0x87,0xc0,0x8c,0x00,0xf8,0x00,0xf0,0x00,0x00,0x00,0x77,0x80,0xff,0xc0,0x88,0x40,// -8-0x88,0x40,0x88,0x40,0xff,0x...