Motorola MVME166D2, MVME166IG/D2 manual Expression as a Parameter, ’Abc’, ’Test’

Models: MVME166IG MVME166D2 MVME166IG/D2

1 122
Download 122 pages 34.03 Kb
Page 73
Image 73
Expression as a Parameter

Entering Debugger Command Lines

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.

Data Type

Base

Identifier

Examples

 

 

 

 

 

 

 

 

 

Integer

Hexadecimal

$

$FFFFFFFF

 

 

 

 

 

Integer

Decimal

&

&1974, &10-&4

 

 

 

 

 

 

Integer

Octal

@

@456

 

 

 

 

 

 

Integer

Binary

%

%1000110

 

 

 

 

 

 

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.

String

Numeric Value

Literal

(In Hexadecimal)

’A’

41

’ABC’

414243

 

 

’TEST’

54455354

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. Subexpressions within parentheses are evaluated first. Nested parenthetical subexpressions are evaluated from the inside out.

4

MVME166IG/D2

4-3

Page 73
Image 73
Motorola MVME166D2, MVME166IG/D2 manual Expression as a Parameter, ’Abc’, ’Test’