The logical operations AND, OR, and XOR operate bitwise between a 32-bit word in memory and a 32-bit register, the result is left in the register. The notes on Bits and Bytes contains examples of how bitwise logical operations work.
NOT on the Hermes machine is done with an XOR of the register with a word value of
0xffffffff.