Thus spake Cesarz, Peter J (GEA, 068974) (PETER.CESARZ@APPL.GE.COM): > Apparently I've got to first SET the zero bit PRIOR to performing a move > operation? What I noticed is that ANY operation, zero or not, with > instructions like MOVF, or DECF will CLEAR the zero bit! Not true. There must be something else you're doing that is making this seem to happen. What about posting a code fragment for the vultures to pick over? > Any advice on how to check a register for zero? It seems like such a > silly question, but I haven't been successful at it yet. Just do something like this: if(x == 0) oops, you probably wanted assembler code! Try this then: movf _x,f btfss 3,2 goto elsewhere ; get here if x is zero -- Clyde Smith-Stubbs | HI-TECH Software, | Voice: +61 7 3354 2411 clyde@htsoft.com | P.O. Box 103, Alderley, | Fax: +61 7 3354 2422 http://www.htsoft.com | QLD, 4051, AUSTRALIA. | --------------------------------------------------------------------------- Download a FREE beta version of our new ANSI C compiler for the PIC microcontroller! Point your WWW browser at http://www.htsoft.com/