> OP uses 12F629 where there is no instruction or such pseudo one, but he > solved it elsewhere in his code already, so he will be just fine > I think :-) > > Tamas I didn't see anything in the thread indicating the problem had been solved. Maybe I missed it. Didn't realize a 12F was involved - my bad... However, regardless of whether a dcfsNZ (Dec - Skip NOT Zero) instruction is available, the original *logic* still looks flawed... the decfsz (Dec - Skip if Zero) looks fishy. bcf INTCON, T0IF ; Clear the interrupt flag decfsz bit_count, F ; looks fishy to me incf state, F ; All the bits have been set, advance to -- Mark -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist