Logical Functions

Remember the Logical functions AND, OR, NOT and XOR

It is possible to use these logical functions on binary numbers. The effects on two binary numbers A and B are summarised in the following table :

Operator OR AND NOT XOR
A 1100 1100 10 1100
B 1010 1010   1010
Answer 1110 1000 01 0110

These logical instructions are used a lot in Assembly Language instructions, and particularly in Control System programs...