Bitwise Operators

PawCalc can do bitwise logic computations on 16 bit numbers (numbers between 0 and 65535). PawCalc recognizes these bitwise operators:

  • not : bitwise negation
  • and : bitwise conjunction
  • or : bitwise disjunction
  • xor : bitwise exclusive or
  • xnor / xnr : bitwise exclusive nor

Select "Logic" in the "Layout" menu to easily access these functions.

Example:

The following expression evaluate to 65529 (0xFFF9), 0b1000, 0b1110, 0b110, and 65529 (0xFFF9):

  • not 0b0110
  • 0b1100 and 0b1010
  • 0b1100 or 0b1010
  • 0b1100 xor 0b1010
  • 0b1100 xnor 0b1010

Take care not to confuse the bitwise operators with the truth value operators.