WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS Keil报错,提示这个报警是哪点出错了 ,有大佬帮看看么
报警*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?WX?闪烁
代码
#include <reg52.h>
#include <intrins.h>
#define uint unsigned int
#define uchar unsigned char
uchar code smgduan[16]=(0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71);
sbit sa=P2^2;
sbit sb=P2^3;
sbit sc=P2^4;
void delay(uint i)
{ while(i–);
}
void wx()
{ uint a;
for(a=0;a<8;a++)
{switch(a)
{case 0:
sa=0;sb=0;sc=0;break;
case 1:
sa=1;sb=0;sc=0;break;
case 2:
sa=0;sb=1;sc=0;break;
case 3:
sa=1;sb=1;sc=0;break;
case 4:
sa=0;sb=0;sc=1;break;
case 5:
sa=1;sb=0;sc=1;break;
case 6:
sa=0;sb=1;sc=1;break;
case 7:
sa=1;sb=1;sc=1;break;
}
P0=smgduan[a];
delay(200);
P0=0x00;
}
}
void main()
{
while(1)
{void wx();
}
}