#include <reg52.h>
#include <stdlib.h>
#define uint unsigned long
#define uchar unsigned char
sbit N1 = P1^4;
sbit N2 = P1^5;
sbit N3 = P1^6;
sbit N4 = P1^7;
sbit A1 = P3^1;
sbit A2 = P3^0;
sbit A3 = P3^2;
uchar code table[]={
0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90}