Specifications

Multi
Slave
Product
Re£erence
Manual
Section
4
Constants
may
occur
in
two
£orms.
numbers
or
strings.
Numbers
may
be
in
decimal
or
hexadecimal
notation.
A
decimal
number
i8
simply
a
string
of
digits;
a
hexadecimal
number
is
prefixed
by
either
a
dollar
sign
(S)
or
enclosed
in
single
quotes
pre£ixed
by
an
X
(e.g.
SFFFF
or
X~FFFF').
Expressions
are
evaluated
to
16
bits
precision
(modulo
65536,
or
SFFFF)
using
two's
complement
arithmetic,
with
no
check
£or
over£low.
Strings
are
any
sequence
characters
enclosed
in
single
quotes.
Two
consective
single
quotes
are
required
to
represent
one
single
quote
within
a
string.
Null
strings
are
ignored.
Expressions
have
the
form:
[[OPERAND
1
[OPERATOR]]
OPERAND 2
where
OPERATOR
is
one
of
the
aforementioned
dyadic
or
monadic
operators,
and
OPERAND 1
and
OPERAND 2
are
constants
or
expres-
sions.
Dyadic
operators
require
both
operands,
monadic
operators
require
only
OPERAND_2.
All
operators
have
equal
precedence,
and
expressions
are
evaluat-
ed
£rom
le£t
to
right.
Parentheses
around
an
expression
may
be
used
to
alter
precedence;
the
innermost
expression
in
parenthesis
is
evaluated
£irst.
The
dyadic
operators
are
used
to
£orm
expressions
which
evaluate
to
either
one
or
zero,
indicating
a
true
or
false
condition
respectively.
A
true
expression
yields
a
result
of
one;
a
false
comparsion
produces
a
zero
result.
The
left
and
right
rotation
operators
«<
and
»)
perform
a
16
bit
rotate
(not
shift)
operation;
rotation
implies
wraparound
of
bits.
Shifting
can
be
accomplished
with
the
multiply
and
divide
operators.
When
used
as
monadic
operators,
operands
are
rotated
one
bit.
When
used
as
dyadic
operators,
the
first
operand
speci-
£ies
the
number
bits
to
rotate.
If
a
string
constant
appears
in
an
expression
with
operators,
the
value
of
the
string
is
the
ASCII
code
of
the
first
character
in
the
string.
An
exception
to
this
rule
occurs
when
two
strings
appear
with
a
relational
operator;
then
a
character
by
character
comparison
of
the
two
strings
is
performed,
using
the
ASCII
value
to
determine
relative
order.
the
two
strings
are
unequal
length,
the
shorter
is
padded
on
the
right
with
spaces.
MULTI SLAVE MONITOR
Page
4-6