#define uint unsigned int
#define uchar unsigned char
#include
void delay(uint);
uchar temp;
uchar a,b;
void main()
{
temp=0xfe;
P0=temp;
while(1)
{
for(a=0;a<10;a++)
{
delay(50);
if(a=7)
break;
temp=_crol_(temp,1);
P0=temp;
}
for(b=0;b<10;b++)
{
temp=_cror_(temp,1);
P0=temp;
if(b=6)
break;
delay(50);
}
}
}
void delay(uint z)
{
uint x,y;
for(x=84;x>0;x--)
for(y=z;y>0;y--);
}