7 character constants, 8 operators – Renesas Emulator Debugger M16C PC4701 User Manual
Page 266
9.2.7 Character constants
The specified character or character string is converted into ASCII code and processed as a constant.
•
Enclose characters in single quote marks.
•
Enclose character strings in double quote marks.
•
The character string must consist of one or two characters (16 bits max.). If more than two
characters are specified, the last two characters of the string are processed. For example, "ABCD"
would be processed as "CD", or value 4344h.
9.2.8 Operators
The table below lists the operators that you can use in expressions.
•
The priority of operators is indicated by the level, level 1 being the highest and level 8 the lowest.
If two or more operators have the same level of priority, they are evaluated in order from the left
of the expression.
Operator Function Priority
level
( )
Brackets
level 1
+, -, ~
Monadic
positive,
monadic
negative, monadic logical NOT
level 2
*, /
Dyadic multiply, dyadic divide
level 3
+, -
Dyadic add, dyadic subtract
level 4
>>,
Right shift, left shift
level 5
&
Dyadic logical AND
level 6
|,
^
Dyadic logical OR, dyadic
exclusive OR
level 7
<, <=, >, >=, ==, !=
Dyadic comparison
level 8
252