Download User Manual

Transcript
MicroBasic Scripting
The output of previous program will be the following:
10
9
8
8
<< Operator
The left-shift operator (<<) shifts its first operand left by the number of bits specified by its
second operand.
expression << expression
The high-order bits of left operand are discarded and the low-order empty bits are zerofilled. Shift operations never cause overflows.
>> Operator
The right-shift operator (>>) shifts its first operand right by the number of bits specified by
its second operand.
expression >> expression
<> Operator
The inequality operator (<>) returns false if its operands are equal, true otherwise.
expression <> expression
< Operator
Less than relational operator (<) returns true if the first operand is less than the second,
false otherwise.
expression < expression
> Operator
Greater than relational operator (>) returns true if the first operand is greater than the second, false otherwise.
expression > expression
<= Operator
Less than or equal relational operator (<=) returns true if the first operand is less than or
equal to the second, false otherwise.
expression <= expression
168
Advanced Digital Motor Controllers User Manual
Version 1.2. January 8, 2011