Logical, Shift and Rotate Instructions 8085 8085 Microprocessor by Ravinder Nath Rajotiya - December 14, 2020May 10, 20210 Logical, Shift and Rotate Instructions of 8085: Logical instruction are used to perform the logical operations such as AND, OR, NOT, XOR, compare, rotate left, rotate right etc. These are described below with examples of each Logical Instructions: Name of Instruction Mnemonic and Format Description Flags Affected>/td> Logical Compare CMP opr Used to Compare ACC with operand which may be in Register or memory if A < opr: Carry Flag is set CPI Immidiate_opr Used to Compare ACC with immediate operand which may be in Register or memory if A < opr: Carry Flag is set; if A = opr: Zero Flag is set; Logical And Operation ANA opr Used to perform logical AND operation with Register or memory S, Z, P are modified to reflect the result of the operation. CY and AC are reset; ANI