To Display The Value Of An Expression Or Variable - HP B1476 68020 User Manual

Debugger/emulator
Table of Contents

Advertisement

Chapter 5: Viewing Code and Data

To display the value of an expression or variable

Expression C_Expression time
Result is: data address 000091DC {time_struct}
To calculate the value of member 'hours' of structure 'time':
Expression C_Expression time->hours
Result is: 4
To assign the value 1 to 'system_is_running':
Expression C_Expression system_is_running = 1
Result is: 1
To display the value of an expression or variable
• Use the mouse to copy the expression or variable into the entry buffer, then
select Display→Var/Expression ().
Or:
• Using the command line, enter:
Expression Display_Value
Enter the expression or variable whose value is to be displayed, and press the
< Return> key.
The value of the expression or variable is displayed in the journal window.
The contents of an item, such as an array, are displayed instead of the C value
of the item which is its address.
Examples
To display the value of the variable 'system_is_running':
Expression Display_Value system_is_running
160
0x04
0x01
01h

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1476 68030

Table of Contents