Logical Instruction :
This type of instructions is utilized for carrying out the bit by bit shift, basic logical operations or rotate. All of the condition code flags are affected depending on the result. Basic logical operations available with 8086 instruction set are, OR, AND, NOT, and XOR. The instruction for each of these operations are AND, OR, NOT, XOR, TEST, SHL/SAL, SHR, SAR.