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

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
the Bitwise Rotate Left operator would rotate that value left by four bits, moving the original
four MSBs to the four new LSBs, and setting
Bitwise Rotate Left has an assignment form,
first operand and the result destination. For example,
X <-= 1 'Short form of X := X <- 1
Here, the value of
Bitwise Rotate Left may also be used within expressions for intermediate results; see
Intermediate Assignments, page 253.
Bitwise Rotate Right ‘
The Bitwise Rotate Right operator is similar to the Bitwise Shift Right operator, except that
the LSBs (rightmost bits) are rotated back around to the MSBs (leftmost bits). Bitwise Rotate
Right can be used in both variable and integer constant expressions, but not in floating-point
constant expressions. Example:
X := Y -> 5
If Y started out as:
...the Bitwise Rotate Right operator would rotate that value right by five bits, moving the
original five LSBs to the five new MSBs, and setting X to:
Bitwise Rotate Right has an assignment form,
first operand and the result destination. For example,
X ->= 3 'Short form of X := X -> 3
Here, the value of
Bitwise Rotate Right may also be used within expressions for intermediate results; see
Intermediate Assignments, page 253.
Bitwise Reverse ‘
The Bitwise Reverse operator returns bits from the first operand in their reverse order, the
total number of which is indicated by the second operand. All other bits to the left of the
Page 268 · Propeller Manual v1.0
%00000111 00001111 11110011 01011000
%10000000 01110000 11111111 00110101
%10101100 00000011 10000111 11111001
X
X
><
is rotated right three bits and is stored back in
is rotated left one bit and is stored back in
’, ‘
->
><=
’, ‘
->=
X
<-=
->=
to:
, that uses the variable to its left as both the
, that uses the variable to its left as both the
X
X
. The assignment form of
. The assignment form of

Related parts for 122-32000