AND/OR
AND is a bitwise operation on two words, where for each corresponding bit a and b:
- a AND b = 1 only when a=1 and b=1, otherwise 0.
OR is a bitwise operation, such that
- a OR b = 0 only if both a=0 and b=0, otherwise 1.
For example:
- 1011 AND 0010 = 0010
- 1011 OR 0010 = 1011