Expression As A Parameter - Motorola M68CPU32BUG User Manual

Debug monitor
Table of Contents

Advertisement

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.
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.
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/D REV 1
Base
Identifier
Hexadecimal
Decimal
Octal
Binary
String Literal
'A'
'ABC'
'TEST'
Examples
$
$FFFFFFFF
&
&1974, &10-&4
@
@456
%
%1000110
Numeric Value (in hex)
41
414243
54455354
2-3
DEBUG MONITOR DESCRIPTION

Advertisement

Table of Contents
loading

Table of Contents