> > disloop incf counter,1 ;get next character position from table > >Don't use 1 or 0 in the "d" field! Microchip provides the W and F symbols >for a reason. Use them. I disagree. Use what you're comfortable with. Granted W and F may be somewhat more convenient than 1 or 0, but that doesn't reduce their utility. I use 1 and 0 almost exclusively. Why would it be any more difficult to remember than W or F if you program often? That is, if you can remember that you NEED a destination for a particular instruction, then remembering 1 or 0 isn't all that tough, I'm sorry. destinations: 1=File 0=Working register As far as the initial problem goes, have you tried simulating that section of the code in MPLAB? I would imagine that checking the status bit after that command should tell you what's happening. And yes, COMF should set the Zero bit. --Andrew _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads