CCS Standardfunction   BitOp [INT / Hex/ Bin/ Oct]
 

BitOp [INT / Hex/ Bin/ Oct]

Value1 [INT]

Value2 [INT]

Operation [Str]

Description of Function

Performs a bit operation on two integers. The result is also an integer.

Testing Points

None

Parameters

Value1

First integer value (or variable which contains the value) for the bit operation.

Value2

Second integer value (or variable which contains the value) for the bit operation.

Operation

Logical bit operator: AND, OR, XOR

Example

BitOp

W1,255,XOR

The integer value in the variable W1 is linked to 255 (decimal notation) by the operator XOR (255dec = FFhex = Form binary bit complement)