Logical Operations
Various operations like and or exclusive or complement compare and rotate are called logical operations. Generally flags ( not all always) are modified in all these operation except complement operation, in which no flag is modified.
The readers are advised to read carefully about various flags for each instruction.