Logical
The logical microinstructions perform the bit operations of AND, OR (inclusive or), NOT, NAND (negated AND), NOR (negated OR), or XOR (exclusive or) on the specified registers. In all operations except NOT, three registers are specified, two of which are source registers and the third of which is the destination register. NOT is monadic and so only the first source register is used and the second is ignored
Parameters:
Source1, Source2, Destination: the three registers to be used. Source1 and Source2 contain the values used in the specified operation and the result is placed in Destination. All registers must have the same width and all bits in the registers are affected by the operation. The three registers need not be distinct, i.e., the two source registers can be the same and a source register can be the same as the destination register. Source2 is ignored if the type of operation is NOT.