Renesas M16C PC4701 Network Card User Manual


 
9 Writing Script Files
251
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. (The debugger for 740 can
use '_' instead of '%'. )
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
The debugger for 740 PC, A, X, Y, S, PS
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. (The debugger for 740 doesn't support
four byte length.)
data Length Debugger Specification
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 w 4 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.
9.2.6 Line Nos.
These are source file line Nos. The format for line Nos. is as follows:
#line_no
#line_no."source file name"
Specify line Nos. in decimal.
You can only specify line Nos. in which software breaks can be set. You cannot specify lines in
which no assembler instructions have been generated, including comment lines and blank lines.
If you omit the name of the source file, the line Nos. apply to the source file displayed in active
Editor(Source) Window.
Include the file attribute in the name of the source file.
Do not include any spaces between the line No. and name of the source file.