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.
Содержание Emulator Debugger M16C PC4701
Страница 13: ...Setup of Debugger 1...
Страница 14: ...Blank Page 2...
Страница 73: ...Tutorial 59...
Страница 74: ...Blank Page 60...
Страница 95: ...Reference 81...
Страница 96: ...Blank Page 82...
Страница 119: ...7 Windows Dialogs When TRIGGER is selected Breaks for the status of signal input from external trace cable 105...
Страница 127: ...7 Windows Dialogs 7 7 6 1 1 Writing Reading a Specified Address Set as below Example Writing to even address 400h 113...
Страница 128: ...Example Writing byte length data 32h to even address 400h 114...
Страница 130: ...16 bits bus width 116...
Страница 132: ...2nd point 118...
Страница 133: ...7 Windows Dialogs 16 bits bus width 119...
Страница 134: ...Example Writing data 10h 3Fh to even address 400h 120...
Страница 138: ...Example Writing byte length data 32h to even address 400h 124...
Страница 140: ...16 bits bus width 126...
Страница 141: ...7 Windows Dialogs Example Writing word length data 1234h to even address 400h 127...
Страница 142: ...Example Writing data 10h 3Fh to even address 400h 128...
Страница 146: ...Example Writing byte length data 32h to even address 400h 132...
Страница 147: ...7 Windows Dialogs Example Writing data 10h 3Fh to even address 400h 133...
Страница 153: ...7 Windows Dialogs 7 7 8 2 Interrupt Termination Set as below 139...
Страница 172: ...For condition 7 choose the Mode shown below and set the Start event 158...
Страница 177: ...7 Windows Dialogs When TRIGGER is selected Measures for the status of signal input from external trace cable 163...
Страница 294: ...MEMO 280...