User Guide

Operators
53
Axcess Programming Language
Bitwise Operator Keywords
Bitwise operator keywords and abbreviations supported in Axcess are listed below:
Bitwise Operator Keywords
BAND (&) Performs a bitwise And operation between two bytes. Each of these bytes can
be a constant value, number, or variable. The result of the operation can be
tested with an IF statement or assigned to a variable.
Example:
X = 5 BAND 14 (* X is equal to 4 *)
BNOT (~) Performs a bitwise Not operation on a byte. Each bit of the byte is inverted; that
is, each "1" bit becomes "Ø," and vice versa. The result of the operation can be
tested with an IF statement or assigned to a variable.
Example:
X = BNOT 1ØØ (* X is equal to 155 *)
BOR (|) Performs a bitwise Or operation between two bytes. Each of these bytes can
be a constant value, number, or variable. The result of the operation can be
tested with an IF statement or assigned to a variable.
Example:
X = 1Ø BOR 6 (* X is equal to 14 *)
BXOR (^) Performs a bitwise exclusive Or operation between two bytes.Each of these
bytes can be a constant value, number, or variable. The result of the operation
can be tested with an IF statement, or assigned to a variable.
Example:
X = 1Ø BXOR 6 (* X is equal to 12 *)