Bitwise NOT NOT

Dest gets Source with every bit flipped.

TagAfter two scans
Flags12
FlagsInv-13

How it works

While the rung is true, each bit of Dest is the opposite of that bit in Source, so NOT 0 is -1. A false rung changes nothing.

How it's used

Use NOT to flip inputs that are on when off.

TagValue
RawInputs12
Active3

NOT flips every bit. AND keeps the four inputs used: 12 becomes 3.

Operands

OperandData typeRead or write
SourceDINT or a numberReads
DestDINTWrites

Common mistakes

  • Expecting NOT 0 to be 1Every bit flips, so NOT 0 is -1.