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

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
reversed bits are zeros in the result. Bitwise Reverse can be used in both variable and integer
constant expressions, but not in floating-point constant expressions. Example:
X := Y >< 6
If Y started out as:
...the Bitwise Reverse operator would return the six LSBs in reverse order with all other bits
zero, setting
Bitwise Reverse has an assignment form,
operand and the result destination. For example,
X ><= 8 'Short form of X := X >< 8
Here, the eight LSBs of the value of
is stored back in
expressions for intermediate results; see Intermediate Assignments, page 253.
Bitwise AND ‘
The Bitwise AND operator performs a bitwise AND of the bits of the first operand with the
bits of the second operand. Bitwise AND 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 & %00001111
%10000000 01110000 11111111 00110101
%00000000 00000000 00000000 00101011
X
to:
&
’, ‘
X
. The assignment form of Bitwise Reverse may also be used within
&=
Table 4-11: Bitwise AND Truth Table
0
0
1
1
Bit States
X
0
1
0
1
are reversed, all other bits are set to zero and the result
><=
, that uses the variable to its left as both the first
Result
0
0
0
1
Propeller Manual v1.0 · Page 269

Related parts for 122-32000