Character Constants; Operators - Renesas Emulator Debugger M16C PC4701 User Manual

Emulator debugger v.1.03
Table of Contents

Advertisement

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
Brackets
Monadic
positive,
negative, monadic logical NOT
Dyadic multiply, dyadic divide
Dyadic add, dyadic subtract
Right shift, left shift
Dyadic logical AND
Dyadic
logical
OR,
exclusive OR
Dyadic comparison
252
Priority level
level 1
monadic
level 2
level 3
level 4
level 5
level 6
dyadic
level 7
level 8

Advertisement

Table of Contents
loading

Table of Contents