sbit COM = P4; sbit SEG = P1; void delay(long d); void main(){ COM = !SEG; while(1){ COM = !COM; SEG = !SEG; delay(500); } } void delay(long d) { while(d){ d--; nop_(); nop_(); } }