> movlw BIT_MASK > xorwf Fbit > btfsc STATUS,Z > nop > > You can replace the first two instructions with a test on the LSB o a > counter or timer that increments all the time in your loop. > > Peter Sorry, Peter. The code above always takes four cycles. Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics