User`s manual

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.
9.2.4 Register variables
Register variables are used for using the values of registers in an expression. Precede the name of the
register with '%' to use it as a register variable. Use the following format.
Product Name
Register name
The debugger for M32C PC, USP, ISP, INTB, FLB, SVF, SVP, VCT,
DMD0,DMD1, DCT0, DCT1, DRC0, DRC1,
DMA0,DMA1, DCA0, DCA1, DRA0, DRA1,
0R0, 0R1, 0R2, 0R3, 0A0, 0A1, 0FB, 0SB <- Bank 0 Register
1R0, 1R1, 1R2, 1R3, 1A0, 1A1, 1FB, 1SB <- Bank 1 Register
The debugger for M16C/R8C PC, USP, ISP, SB, INTB, FLG
0R0, 0R1, 0R2, 0R3, 0A0, 0A1, 0FB <- Bank 0 Register
1R0, 1R1, 1R2, 1R3, 1A0, 1A1, 1FB <- Bank 1 Register
Uppercase and lowercase letters are not unique in register names. You can specify either.
9.2.5 Memory variables
Use memory variables to use memory values in expressions. The format is as follows:
[Address].data-size
You can specify expressions in addresses (you can also specify memory variables).
The data size is specified as shown in the following table.
data L ngth
e
De gger bu Specif ation ic
1 Byte All B or b
The debugger for M32R H or h 2 Bytes
Other W or w
The debugger for M32R W or w4 bytes
The debugger for M32R, M16C/R8C L or l
Example: Referencing the contents of memory at address 8000h in 2 bytes
[0x8000].W
The default data size is word, if not specified.
246