CPL inverts all bits of A.
cpl
Sets H and N, other flags are unmodified.
This instruction returns the same value as XORing A with $FF or subtracting A from $FF. Also, CPL \ INC A returns the same value that NEG does.
4 t-states
NEG,XOR