#include<reg52.h>
#include<intrins.h>
#define LED P0
sbit KEY0=P2^0; //定义按键输入端口 A
sbit KEY1=P2^1; //定义按键输入端口 B
sbit KEY2=P2^2; //定义按键输入端口 C
unsigned int Led_table[8]={0xfe,0xfc,0xf8,0xf0,0xe0,0xc0,0x80,0x00};
char Led_num=0;
unsigned int num=0; //中断计数
void delayms(unsigned int x)
{
unsigned int i,j;