There are three subroutines which produce basic logical operations:
AND OR XOR (eXclusive OR)
AND
OR
XOR (eXclusive OR)