To predict the results of the logical instructions, you must convert the Hexadecimal number into binary numbers and then preform the logical function on each bit.
Logical instructions are for bit manipulation of the registers specified.
This is the only way we can set or clear the bits inside any of the registers. The AND instruction is used to clear individual bits. The OR instruction is used to set individual bits. The XOR instruction is used to clear a register to zero. USE the following chart to convert between Hexadecimal, decimal and binary.