HP B1476 68020 User Manual page 246

Debugger/emulator
Table of Contents

Advertisement

Chapter 8: Using Macros and Command Files
Using Macros
This section shows you how to:
Saving and re-using macros
You can define and save macros interactively during a debugger session.
Macro limits
The maximum number of characters that can be entered on a line in a macro
definition is 255. When entering macro interactively, the debugger does not
respond to more than 78 characters on a line. When reading a command file,
the debugger stops recognizing characters after 255 characters have been read
on a line.
The maximum number of lines allowed in a macro depends on the complexity
of the lines. Macros with too many lines (too complex) will fail. Error 92 "Not
enough memory for expression" will be displayed.
A maximum of 40 parameters may be specified in a macro definition.
Once you have defined a macro, you can use it any time during the debugging
session, whenever that set of commands or statements is needed.
Caution
The pseudoregister @cycles is not implemented in the emulation
environment. Macros written for execution in both the simulation and
emulation environments must not refer to @cycles.
Macro comments
Macros support C comments (introduced by the characters /* and terminated
with the characters */).
222
Define a macro.
Call a macro.
Stop a macro.
Display macro source code.
Patch C source code by using macros.
Delete a macro.

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1476 68030

Table of Contents