s5u1c33000c Epson Electronics America, Inc., s5u1c33000c Datasheet - Page 134

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
CHAPTER 9: PREPROCESSOR
9.6 Operators
An expression that consists of operators and numbers can be used for specifying an immediate data.
The pp33 handles expressions in signed 32-bit data.
When writing expressions, do not insert a space between a term and an operator.
Types of operators
Priority
Terms in expression
118
The operators have the priority shown below. If there are two or more operators with the same priority in an
expression, the preprocessor calculates the expression from the left.
1.
2.
3.
4.
5.
6.
7.
8.
The following contents can be written in the terms of an expression.
+
-
*
/
%%
>>
<<
&
|
^
~
^H
^M
^L
^AH Acquires bit field (25:13)
^AL Acquires bit field (12:0)
( )
Binary, decimal, or hexadecimal number in the effective range of values represented by 32 bits
Unsigned integer: 0 to 4294967295 (0x0 to 0xffffffff)
Signed integer: 0 to 2147483647 (0x0 to 0x7fffffff), -1 to -2147483648 (0xffffffff to 0x80000000)
Define names defined for numbers (names defined by #define)
Symbol
If the symbol is not a Define name, the expression is limited to the following format:
SYMBOL [+SYMBOL...] + numeric expression or SYMBOL [+SYMBOL...] - numeric expression
( )
+ (plus sign), - (minus sign), ~
^H, ^M, ^L, ^AH, ^AL
*, /, %%
+, -
<<, >>
&
^
|
Addition, Plus sign
Subtraction, Minus sign
Multiplication
Division
Residue
Shifting to right
Shifting to left
Bit AND
Bit OR
Bit XOR
Bit inversion
Acquires bit field (31:19)
Acquires bit field (18:6)
Acquires bit field (5:0)
Parenthesis
EPSON
+0xff, 1+2
-1+2, 0xfff-0b111
0xf*5
0x123/0x56
0x123%%0x56
1>>2
0x113<<3
0b1101&0b111
0x123|0xff
12^35
~0x1234
0x1234^H
0x1234^M
0x1234^L
0x1234^AH
0x1234^L
1+(1+2*5)
High priority
Low priority
Examples
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
S5U1C33000C MANUAL

Related parts for s5u1c33000c