or : counting btfss INTCON,T0IF ;is timer0 interrupt flag true ? goto zero_status bcf INTCON,T0IF ;if T0IF=3Dfalse=20 clear timer0 interrupt flag decf LedTimer,1 ;if T0IF=3Dtrue reduce=20 the counter ;check if LedTimer =3D 0 ? zero_status btfsc STATUS, Z ;Z bit is set=20 to 1 if W was 00 - skip next instruction if not 00 ;LedTimer=3D0 goto counting ;from btfsc if it's 1, go=20 to next state ;LedTimer!=3D0 goto next_state ;from btfsc if it's=20 0 keep counting interrupt next_state incf LedState,1 ; if 00 increase=20 the state, for the next state return --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .