#include<reg52.h>
#define uchar unsigned char
sbit key=P3^3;
uchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,
0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0xf5,0xf6,0xf7};
uchar num,num1;
void display(uchar num1)
{ P2=table[num1] ;
P1=0x01;
}
void main()
{ while(1)
if(key==0)
{ if(num==10)
num=0;
else
num++;
}
display(num) ;
}
怎么编译后显示这个Build target 'Target 1'
assembling STARTUP.A51...
compiling lesson2-2.c...
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_DISPLAY?LESSON2_2
Program Size: data=11.0 xdata=0 code=62
creating hex file from "lesson2-2"...
"lesson2-2" - 0 Error(s), 1 Warning(s). |