这个点亮数码管的程序为什么有问题?
#include<reg52.h>
#include<intrins.h>
sbit dula=P2^6;
sbit wela=P2^7;
char num;
char code table[]={0XAA,0X3F,0X06,0X5B,0X4F,0X66,0X6D};
void main()
{
char temp;
while(1)
{
temp=0xFE;
for(num=0;num<6;num++)
{
wela=1;
P0=_irol_(temp,num);
wela=0;
dula=1;
P0=table[num+1];
dula=0;
}
}
}