Expression As A Parameter - Motorola MVME162LX 300 Series Installation And Use Manual

Embedded controller
Table of Contents

Advertisement

Expression as a Parameter

An expression can be one or more numeric values separated by the
arithmetic operators: plus (+), minus (-), multiplied by (*), divided by (/),
logical AND (&), shift left (<<), or shift right (>>).
Numeric values may be expressed in either hexadecimal, decimal, octal, or
binary by immediately preceding them with the proper base identifier.
If no base identifier is specified, then the numeric value is assumed to be
hexadecimal.
A numeric value may also be expressed as a string literal of up to four
characters. The string literal must begin and end with the single quote mark
('). The numeric value is interpreted as the concatenation of the ASCII
values of the characters. This value is right-justified, as any other numeric
value would be.
Evaluation of an expression is always from left to right unless parentheses
are used to group part of the expression. There is no operator precedence.
Sub-expressions within parentheses are evaluated first. Nested
parenthetical sub-expressions are evaluated from the inside out.
http://www.mcg.mot.com/literature
Data Type
Base
Integer
Hexadecimal
Integer
Decimal
Integer
Octal
Integer
Binary
String
Literal
'A'
'ABC'
'TEST'
Entering Debugger Command Lines
Identifier
Examples
$
$FFFFFFFF
&
&1974, &10-&4
@
@456
%
%1000110
Numeric Value
(In Hexadecimal)
41
414243
54455354
4
4-3

Advertisement

Table of Contents
loading

Table of Contents