movlw  0

doesn't affect Z

   movwf  reg
   xorwf  reg,w

doesn't affect C, sets Z

   movwf  reg
   subwf  reg,w

Sets C,DC, and Z