10 C/C++ Expressions
257
10.1.13 Casting to typedef Types
You can use casting to typedef types (types other than the C basic types) and the pointer types to
them. When casting to a pointer type, you can also use pointers to pointers and pointers to pointers to
pointers, etc.
Notes
•
You cannot cast to struct or union types or the pointers to those types.
10.1.14 Variable Name
Variable names that begin with English alphabets as required
under C/C++ conventions can be used.
The maximum number of characters for variable name is 255.
And 'this' pointer is available.
10.1.15 Function Name
Function names that begin with English alphabets as required
under C conventions can be used.
In the case of C++, no function names can be used.
10.1.16 Character Constants
You can use characters enclosed in single quote marks (') as character constants. For example, 'A', 'b' ,
etc. These character constants are converted to ASCII code and used as 1-byte immediate values.
Notes
•
You cannot register character constants only as C watchpoints.
•
Character constants are valid only when used in a C/C++ expression that specifies a C
watchpoint, and when specifying a value to be assigned (character constants are processed in the
same manner as immediate values).
10.1.17 Character String Literals
You can use character strings enclosed in double quote marks (") as character string literals.
Examples are "abcde", "I am a boy.", etc.
Notes
•
Character string literals can only be placed on the right side of an assignment operator in an
expression. They can only be used when the left side of the assignment operator is a char array or
a char pointer type. In all other cases, a syntax error results.
Summary of Contents for Emulator Debugger M16C PC4701
Page 13: ...Setup of Debugger 1...
Page 14: ...Blank Page 2...
Page 73: ...Tutorial 59...
Page 74: ...Blank Page 60...
Page 95: ...Reference 81...
Page 96: ...Blank Page 82...
Page 128: ...Example Writing byte length data 32h to even address 400h 114...
Page 130: ...16 bits bus width 116...
Page 132: ...2nd point 118...
Page 133: ...7 Windows Dialogs 16 bits bus width 119...
Page 134: ...Example Writing data 10h 3Fh to even address 400h 120...
Page 138: ...Example Writing byte length data 32h to even address 400h 124...
Page 140: ...16 bits bus width 126...
Page 141: ...7 Windows Dialogs Example Writing word length data 1234h to even address 400h 127...
Page 142: ...Example Writing data 10h 3Fh to even address 400h 128...
Page 146: ...Example Writing byte length data 32h to even address 400h 132...
Page 147: ...7 Windows Dialogs Example Writing data 10h 3Fh to even address 400h 133...
Page 153: ...7 Windows Dialogs 7 7 8 2 Interrupt Termination Set as below 139...
Page 172: ...For condition 7 choose the Mode shown below and set the Start event 158...
Page 294: ...MEMO 280...