In message PICLIST@MITVMA.MIT.EDU writes: > Say folks, > > In the past to test a register for the existence of zero I would perform > some sort of mask operation. This time I thought I would try my hand at > using the ZERO STATUS BIT. > > hasn't worked yet. > > 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! > > 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. > Pete, I use the macros built in to MPASM: tstf my_reg skpz or tstf my_reg skpnz I hope this helps, Mike Watson