Forming Expressions - HP 68000 Series User Manual

Debugger/simulator
Table of Contents

Advertisement

Chapter 10: Expressions and Symbols in Debugger Commands

Forming Expressions

Forming Expressions
The debugger groups expressions into two classes:
When you use a source language expression to express a code address in high
level mode, it can consist only of a single symbol or a single line number.
Source language expressions cannot contain numeric constants or operators.
This restriction reduces confusion when entering high level expressions.
There are no restrictions on source language expressions that evaluate to data
addresses or on assembly language expressions.
Examples of legal and illegal source language code expressions in high level
mode are shown below.
Legal
Illegal
With several commands, the size of an expression can be specified by size
qualifiers. The size qualifiers are explained in the "Debugger Commands"
chapter.
You may use C+ + classes in expressions.
Floating point calculations follow the rules of C. Single precision numbers are
converted to double precision, the specified operation is done, and the result
is translated back to single precision.
Note
Any value can be treated as an address. For example, a character value (byte)
can be treated as an address. You should be careful when using values as
addresses.
Examples of valid expressions are shown in the following table.
430
Assembly language expressions used in assembly level mode.
Source language expressions used in either assembly level mode or high
level mode.
# 80
main
# 80+ 3
main+ 10

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents