Intel AEDIT-86 Life Jacket User Manual


 
AEDIT -86 User's Guide
CALC
Command
Table
7-1.
Operators' Precedence and Associativity
Operator
Operator Interpretation
A
..
oclatlvlty
Cia
••
Parentheses (
) Controls evaluation
From inside
order: expressions in
to
outside
parentheses are
evaluated before the
action
of
any outside
operator
on
the items
in
parentheses
Unary
+
-
-
! # Single positive opera- From right
to
tor, Single negative
left, e.g.,
operator, 1 's com
ple-
!#3is
ment
(-
or ') !(#3)
P~S
operator (!)
NEG
operator
(#)
Power
..
Raising to the power From right
to
of left, e.g.,
3·-
4"
S is
3"·
(4
"S)
Arithmetic
.
/
\ Multiplication, division,
From left to
(mul/div)
mod (remainder) div
right. e.g
.•
11
12"
13
is
(11-12)·13
Arithmetic
+
-
Addition, subtraction
From left to
(add/sub)
right, e.g.,
2-3+4
is
(2-3)+4
Shift/rotate
SHL,SHR,SAL.SAR,ROL,ROR Shift left, shift right, From left to
shift
algebraic left, right, e.g.,
shift
algebraic right,
S
SAR
1
SAR
rotate left, rotate right. 1 is
(5
SAR
1)
SAR 1
Relational
<
<=
===
<>
=>
>
Less than, less than From left to
or equal to.
equal to,
right, e.g.,
not equal to, greater
3
< 4 < 2 is
than or equal to,
(3
<
4)
< 2
greater than
Logical &
I
1\
AND,
OR,
XOR
From left to
right. e.g
..
S & 3
1\
7 is
(5 &
3)
1\
7
7.3
Numeric Constants
The
CALC
command numeric constants are integer numbers. They can be binary,
octal, decimal, or hexadecimal. The
CALC
command recognizes these constants
by
the
suffix
B,
0 (or Q),
D,
or H, respectively. Numbers without a suffix are consid-
ered decimal. A numeric constant may be
in
the
range-(2**31)
to
+(2**31)-1.
7.4
String Constants
A string constant may be 0-60 characters long with same delimiter at both ends.
The
same delimiter means that there
is
no
predefined string delimiter; rather, the charac-
ter
immediately to the left
of
the string constant
is
identified as a delimiter. Then the
7-3