Reg_Str - HP 68000 Series User Manual

Debugger/simulator
Table of Contents

Advertisement

reg_str

Function
Get register value
Synopsis
unsigned long reg_str(str1)
char *str1;
Description
The reg_str macro gets the contents of a register using a string variable
representation of its name. This is not possible using standard debugger
commands. The register value is returned by the macro.
Diagnostics
If the string does not contain a valid register name, an unknown value will be
returned and the debugger will display an error message in the debugger error
window.
Examples
To display the value of register D0:
Symbol Add char reg_name[10]
Debugger Macro Call strcpy(reg_name,"@D0")
Expression Display_Value reg_str(reg_name)
or,
Expression Display_Value reg_str("@D0")
or,
Expression C_Expression reg_str("@D0")
Chapter 11: Predefined Macros
reg_str
469

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents