#includevoid delay(unsigned char a){unsigned char i;while(a--)for(i=0;i<120;i++);}main(){unsigned char i;P1=0xfe;for(i=0;i<8;i++) { delay(200); P1=(P1<<1) | 0x01; } P1=0x00;while(1);}