To Define A Macro Interactively Using The Command Line - HP B1476 68020 User Manual

Debugger/emulator
Table of Contents

Advertisement

To define a macro interactively using the
command line
1 Enter the Debugger Macro Add command followed by an optional return
type, and then a macro name. The macro name must be followed by
parentheses; the parentheses can optionally enclose macro arguments
separated by commas.
Debugger Macro Add [<type>] <name> ([parm,parm,...])
[<parm_types>;]
2 Enter the text of the macro body.
{
[[<C_expr>|<C_stmt>|$<debugger_cmd>$];...]
}
3 End the macro definition with a period as the first and only character on a
line. The macro is checked for syntax errors as soon as the period is
encountered. If an error is found within a macro, the macro definition is not
saved. The macro must be completely reentered.
Your completed macro definition should have the following syntax:
Debugger Macro Add [<type>] <name> ([parm,parm,...])
[<parm_types>;]
{
[[<C_expr>|<C_stmt>|$<debugger_cmd>$];...]
}
.
Debugger commands can be embedded in the macro by enclosing the
commands between $ characters. For example,
$Expression C_Expression @PC = #31$;
No standard C library functions are available from within a macro. However,
there are built-in macros available in the debugger that perform similar
functions (refer to the "Predefined Macros" chapter).
Chapter 8: Using Macros and Command Files
Using Macros
227

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1476 68030

Table of Contents