DEBUG MONITOR DESCRIPTION
M68CPU32BUG/D REV 1
2-3
2.2.1.1 Expression as a Parameter
An expression is one or more numeric values separated by the arithmetic operators:
+
plus
–
minus
*
multiplied by
/
divided by
& logical AND
<< shift left
>> shift right
Base identifiers define numeric values as either a hexadecimal, decimal, octal or binary number.
Base
Identifier
Examples
Hexadecimal
$
$FFFFFFFF
Decimal
&
&1974, &10-&4
Octal
@
@456
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 as many as four characters. The
string literal must begin and end with single quote marks ('). The numeric value is interpreted as
the concatenation of the ASCII values of the characters. This value is right-justified, as is any
other numeric value.
String Literal
Numeric Value (in hex)
’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. Sub-expressions within parentheses are
evaluated first. Nested parenthetical sub-expressions are evaluated from the inside out.
Содержание M68CPU32BUG
Страница 16: ...GENERAL INFORMATION M68CPU32BUG D REV 1 1 8 ...
Страница 30: ...DEBUG MONITOR DESCRIPTION M68CPU32BUG D REV 1 2 14 ...
Страница 102: ...DEBUG MONITOR COMMANDS M68CPU32BUG D REV 1 3 72 ...
Страница 168: ...DIAGNOSTIC FIRMWARE GUIDE M68CPU32BUG D REV 1 6 24 ...