115
C-Control Pro Mega Series
© 2008 Conrad Electronic
And
And
&H0f And 3
&Hf0 And &H0f
3
0
Or
Or
1 Or 3
&Hf0 Or &H0f
3
&Hff
Xor
exclusive Or
&Hff Xor &H0f
&Hf0 Xor &H0f
&Hf0
&Hff
Not
Bit inversion
Not &Hff
Not &Hf0
0
&H0f
5.3.5.3
Bit-Shift Operators
Bit-Shift operators are only allowed for Integer data types. With a Bit-Shift operation a
0
will always
be moved into one end.
Operator
Description
Example
Result
<<
shift to left
1 << 2
3 << 3
4
24
>>
shift to right
&Hff >> 6
16 >> 2
3
4
5.3.5.4
Comparison Operators
Comparison operators are allowed for Single and Integer data types.
Operator
Description
Example
Result
<
smaller
1 < 2
2 < 1
2 < 2
1
0
0
>
greater
-3 > 2
3 > 2
0
1
<=
smaller or equal
2 <= 2
3 <= 2
1
0
>=
greater or equal
2 >= 3
3 >= 2
0
1
=
equal
5 = 5
1 = 2
1
0
<>
not equal
2 <> 2
2 <> 5
0
1
Summary of Contents for C-Control Pro Mega Series
Page 1: ... 2008 Conrad Electronic C Control Pro Mega Series ...
Page 9: ...VIII Inhalt 2008 Conrad Electronic ...
Page 10: ...Part 1 ...
Page 17: ...Part 2 ...
Page 23: ...Part 3 ...
Page 41: ...32 Hardware 2008 Conrad Electronic 3 3 5 3 Component Parts Plan ...
Page 57: ...48 Hardware 2008 Conrad Electronic 3 4 5 3 Component Parts Plan ...
Page 58: ...Part 4 ...
Page 91: ...82 IDE 2008 Conrad Electronic ...
Page 92: ...Part 5 ...
Page 135: ...126 Compiler 2008 Conrad Electronic 31 1F US 63 3F 95 5F _ 127 7F DEL ...
Page 136: ...Part 6 ...
Page 231: ...Part 7 ...
Page 240: ......