beautypg.com

Zilog Z8F0130 User Manual

Page 422

background image

Using the Debugger

UM013037-1212

398

Zilog Developer Studio II – Z8 Encore!
User Manual

The

0x

prefix indicates that the values are displayed in hexadecimal format. If you want

the values to be displayed in decimal format, select

Hexadecimal Display

from the con-

text menu.

If the

Watch

window displays unexpected values, deselect the

Use Register Variables

checkbox on the

Advanced

page of the

Project Settings

dialog box. See the

Use Register

Variables

section on page 83.

The following sections describe how to use the

Watch

window:

Adding New Variables

– see page 398

Changing Values

– see page 398

Removing an Expression

– see page 398

Viewing a Hexadecimal Value

– see page 399

Viewing a Decimal Value

– see page 399

Viewing an ASCII Value

– see page 399

Viewing a NULL-Terminated ASCII (ASCIZ) String

– see page 399

Adding New Variables

To add new variables in the

Watch

window, select the variable in the source file, drag, and

drop it into the window. Another way to add new variables is to use the following proce-
dure:

1. Click once on

in the

Expression

column to activate the column so that

you can enter the expression accurately.

2. Enter the expression and press the

Enter

key. The value is displayed in the Value col-

umn.

Changing Values

To change values in the

Watch

window, perform the following tasks:

1. In the window, highlight the value you want to change.

2. Enter the new value and press the

Enter

key. The changed value is displayed in red.

Removing an Expression

To remove an expression from the

Watch

window, perform the following tasks:

1. In the Expression column, click once on the expression you want to remove.

2. Press the Delete key to clear both columns.

Note: