122-32000 Parallax Inc, 122-32000 Datasheet - Page 272

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Bitwise NOT ‘
The Bitwise NOT ‘
bits of the operand that follows it. Bitwise NOT can be used in both variable and integer
constant expressions, but not in floating-point constant expressions.
Each bit of the two operands is subject to the following logic:
Example:
X := !%00101100
The above example NOTs %00101100 and writes the result, %11010011, to X.
Bitwise NOT becomes an assignment operator when it is the sole operator to the left of a
variable on a line by itself. For example:
!Flag
This would store the inverted value
Be careful not to get Bitwise NOT ‘
bit manipulation while Boolean NOT is for comparison purposes (see page 274).
Boolean AND ‘
The Boolean AND ‘
are
can be used in both variable and constant expressions. Example:
X := Y AND Z
The above example compares the value of
if both
promotes each of the two values to -1 if they are non-zero, making any value, other than 0, a -
1, so that the comparison becomes: “If
Page 272 · Propeller Manual v1.0
TRUE
Y
(non-zero), or returns
and
Z
are non-zero, or
!
AND
!
AND
’ operator performs a bitwise NOT (inverse, or one’s-complement) of the
’, ‘
’ operator compares two operands and returns
AND=
Table 4-14: Bitwise NOT Truth Table
Bit State
FALSE
0
1
FALSE
Flag
!
’confused with Boolean NOT ‘
(0) if one or both operands are
(0) if either
Y
is true and
back into
Y
with the value of
Flag
Y
Z
Result
or
is true…”
.
1
0
Z
are zero. During the comparison, it
Z
and sets
NOT
FALSE
TRUE
’. Bitwise NOT is for
X
(0). Boolean AND
to either:
(-1) if both values
TRUE
(-1)

Related parts for 122-32000