![HP 68000 Series User Manual Download Page 215](http://html.mh-extra.com/html/hp/68000-series/68000-series_user-manual_157001215.webp)
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 6: Using Macros and Command Files
Using Macros
193
Summary of Contents for 68000 Series
Page 1: ...User s Guide HP B1466 68000 Series Debugger Simulator ...
Page 22: ...Contents xxii ...
Page 23: ...Part 1 Quick Start Guide ...
Page 24: ...Part 1 2 ...
Page 57: ...Part 2 User s Guide ...
Page 58: ...Part 2 36 ...
Page 140: ...Chapter 3 Loading and Executing Programs Using the Debugger with the Branch Validator 118 ...
Page 234: ...Chapter 6 Using Macros and Command Files Using Command Files 212 ...
Page 266: ...Chapter 7 Configuring the Debugger Setting X Resources 244 ...
Page 267: ...Part 3 Concept Guide ...
Page 268: ...Part 3 246 ...
Page 269: ...8 X Resources and the Graphical Interface An introduction to X resources 247 ...
Page 281: ...Part 4 Reference ...
Page 282: ...Part 4 260 ...
Page 283: ...9 Debugger Commands Detailed descriptions of command line commands 261 ...
Page 436: ...Chapter 9 Debugger Commands Window Toggle_View 414 ...
Page 466: ...Chapter 10 Expressions and Symbols in Debugger Commands Symbolic Referencing 444 ...
Page 467: ...11 Predefined Macros 445 ...
Page 504: ...Chapter 11 Predefined Macros write 482 ...
Page 505: ...12 Debugger Error Messages A list of the error messages generated by the debugger 483 ...
Page 524: ...Chapter 12 Debugger Error Messages 502 ...
Page 531: ...Part 5 Installation Guide ...
Page 532: ...Part 5 510 ...
Page 533: ...14 Installation How to install the debugger software on your computer 511 ...
Page 584: ...Index 562 ...