beautypg.com

2 priority levels of labels and symbols, 3 macro variables – Renesas Emulator Debugger M16C PC4701 User Manual

Page 264

background image


9.2.2.2 Priority levels of labels and symbols

The conversion of values to labels or symbols, and vice versa, is subject to the following levels of
priority:

Conversion of address values

1. Local

labels

2. Global

labels

3. Local

symbols

4. Global

symbols

5.

Local labels outside scope

6.

Local symbols outside scope


Conversion of data values

1. Local

symbols

2. Global

symbols

3. Local

labels

4. Global

labels

5.

Local symbols outside scope

6.

Local labels outside scope


Conversion of bit values

1.

Local bit symbols

2.

Global bit symbols

3.

Local bit symbols outside scope

9.2.3 Macro Variables

Macro variables are defined by assign statements in the script file. See Section "9.1.2 Assign
Statement
" in the Reference part for details. Precede variables with '%' for use as macro variables.

You can specify alphanumerics and/or the underbar (_) in the variable name following the percent
sign (%). However , do not star t the names with a numeric.

You cannot use the names of registers as variable names.

Uppercase and lowercase letters are differentiated in variable names.

You can define a maximum of 32 macro variables. Once defined, a macro variable remains valid
until you quit the debugger.


Macro variables are useful for specifying the number of iterations of the while statement.

250