mov	W, #0

doesn't affect Z

	mov	reg, W
	xor	W, reg

doesn't affect C, sets Z

	mov	reg, W
	mov	W, reg-w

Sets C,DC, and Z