>BTW: I don't follow your comment on the Z flag being affected >differently in his 2 routines - the only difference is the extra >GOTO, which doesn't affect the Z flag. Or have I missed something?? I am wondering the same. In both cases the first instruction is the same, so the Z flag must be affected the same. The instruction affects only the Z flag. He correctly uses appropriately different BTFS instructions, to achieve the different solutions. The only time I can see something strange happening is when the FSR is pointing at a timer register, in which case there would be an extra cycle or two added to the time it takes to reach its count, but that would not affect the code snippet. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu