Operator board:
Priority |
Unary |
Priority |
Binary operators |
1. |
|
3. |
|
2. |
|
4. |
|
5. |
|
||
6. |
|
||
7. |
|
||
8. |
|
||
9. |
|
Description:
Unary.
%<constant>
%<constant>$
Reference operator to macro definition parameter. Parameters are numbered from 1. Call %0 is the number of parameters passed to the macro definition. Placing the '$
' character after the parameter reference means that a text type parameter is expected. Calling %0$ returns the name of the macro definition.
[ ]
Parentheses are used to change the order of calculations resulting from operator priorities.
~
Bit negation - replace all expression bits with the opposite.
!
Logical negation - replace a non-zero expression with 0 and zero expression to 1.
-
Change the number character.
>
Upper (older) byte of the word.
<
Lower (younger) byte of the word.
Two-argument operators.
* / %
Multiplication, integer division, and modulo operation.
<< >>
Swipe left and right expressions by a given number of bits.
+ -
Addition and subtraction.
& | ^
Bit conjunction (and), sum (or), and difference (xor) operations.
> < >= <= == !=
Expression comparison operations. They return 1 as truth and 0 as false.
&&
Logical conjunction (and). Returns 1 as truth and 0 as false.
||
Logical sum (or). Returns 1 as truth and 0 as false.
Examples:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|