Debug Manual

Table Of Contents
Debug Command Overview
Debug Manual421921-003
3-10
Expression Syntax
The other prefixes affect the interpretation of number as follows:
register
represents the contents of one of the processor registers for that process; see
Register Syntax on page 3-7.
K [ X | D ] address
is a value that allows memory-based variables in its calculation.
op
is one of these arithmetic operators:
These operators have the same precedence. The order of execution is left to right.
To control order, you can use parentheses.
Considerations
Debug evaluates a particular expression at the time you enter the command
containing that expression.
A register’s value is the contents of that register at the time you enter the
command that references it.
Extended addressing and N addresses use 32-bit addresses.
A 32-bit address can be entered as a value that cannot be represented in 16 bits or
high-word.low-word. The 32-bit value is preferred to the high-word.low-
word form.
% represents an octal number; octal is the default numeric base
except for the DN command and N address mode.
# represents a decimal number.
%H |0X represents a hexadecimal number.
K gets the contents of the specified address.
X loads a 16-bit word from the specified address with sign extension.
D loads a 32-bit word from the specified address.
address is the specified 16-bit address. For the format, see Address Syntax
on page 3-12.
* Unsigned multiply
/ Unsigned divide
<< Left shift (unsigned 32-bit shift)
>> Right shift (unsigned 32-bit shift)