这是我的程序,编译过后会有警告出现,但是程序找不出错误,也没有没调用的子函数求解。。。
#include "reg51.h"
#define uc unsigned char
#define ui unsigned int
#define duan P0
#define wei P1
uc cnt,x[8];
uc code dm[]=
{
0xc0,0xf9,0xa4,0xb0,
0x99,0x92,0x82,0xf8,
0x80,0x90,0x88,0x83,
0xc6,0xa1,0x86,0x8e
};
uc code wm[]=
{
0xfe,0xfd,0xfb,0xf7,
0xef,0xdf,0xbf,0x7f
};
void delay(ui c)
{
uc i,j;
for(;c>0;c--)
for(i=38;i>0;i--)
for(j=130;j>0;j--);
}
void fz()
{
duan=0x00;
wei=0x00;
wei=wm[cnt];
duan=dm[x[cnt]];
cnt=++cnt%8;
delay(1);
}
void main()
{
while(1);
{
fz();
}
}
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?FZ?JSQ0_2
|