NOT

Performs bitwise NOT operation.

Syntax

NOT1 value [in,1], result [out,1] ;code:109
NOT2 value [in,2], result [out,2] ;code:110
NOT4 value [in,4], result [out,4] ;code:111
NOT8 value [in,8], result [out,8] ;code:112

Description

This instruction performs bitwise NOT operation: result = NOT value.

The one's complement instruction, sometimes called the "bitwise complement" instruction, yields a bitwise one's complement of its input value. That is, every bit that is 1 in the value is 0 in the result. Conversely, every bit that is 0 in the value is 1 in the result.

value    0 1
result   1 0

NoASM

There are several kinds of these instructions defined in NoASM Compiler:

NOT1,  NOT2,  NOT4,  NOT8,
NOT1u, NOT2u, NOT4u, NOT8u