10 C/C++ Expressions
253
10. C/C++
Expressions
10.1 Writing C/C++ Expressions
You can use C/C++ expressions consisting of the tokens shown below for registering C watchpoints
and for specifying the values to be assigned to C watchpoints.
Token
Example
Immediate values
10, 0x0a, 012, 1.12, 1.0E+3
Scope
::name, classname::member
Mathematical operators
+, -, *, /
Pointers
*, **, ...
Reference
&
Sign inversion
-
Member reference using dot operator
Object.Member
Member reference using arrow
Pointer->Member, this->M mber
e
Pointers to Members
Ob ct.*var, Pointer->*var
je
Parentheses
(, )
Arrays
Array[2], DArray[2] [3] , ...
Casting to basic types
(int), (char*), (unsigned long *), ...
Casting to typedef types
(DWORD), (ENUM), ...
Variable names and function names
var, i, j, func, ...
Character constants
'A', 'b', ...
Character string literals
"abcdef", "I am a boy.", ...
10.1.1 Immediate Values
You can use hexadecimals, decimals, octals as immediate values. Values starting with 0x are
processed as hexadecimals, those with 0 as octals, and those without either prefix as decimals.
Floating-point numbers can also be used to assign values to variables.
Notes
•
You cannot register only immediate values as C watchpoints.
•
The immediate value is effective only when it is used in C/C++ language expressions that specify
C/C++ watchpoints or when it is used to specify the value to be assigned to those expressions.
When using floating-point numbers, operation cannot be performed on an expression like 1.0+2.0.
Содержание 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...