Elmo HARSFEN0602 Network Hardware User Manual


 
HARSFEN0602
Output type 32 bit long integer.
Example if x=1 as x^3=2
4.2.4.7 Bitwise NOT
Notation ~
Description Bitwise NOT
Number of
arguments
1
Output type 32 bit long integer.
Example ~3 is 0xfffffffc, which is actually –4
~3.2 is the same as !3
4.2.4.8 Bitwise OR
Notation |
Description Bitwise OR
Number of
arguments
2
Output type 32 bit long integer.
Example PA = 0x2 | 0x5 is equivalent to PA = 7
PA = 0x2 | 5.1 is the same
4.2.4.9 Bitwise AND
Notation &
Description Bitwise AND
Number of
arguments
2
Output type 32 bit long integer.
Example PA = 0x7 & 0x3 is equivalent to PA = 3
PA = 0x7 & 3.1 is the same
4.2.4.10 Logical Equality
Notation ==
Description Logical equality
Number of
arguments
2
Output type 0 or 1 (0 equals to false, 1 equals to true)
Example if x=3 and y=3 as x==y yields 1
if x=3 and y=5 as x==y yields 0
4.2.4.11 Logical Inequality
Notation !=
Description Logical inequality
Number of
arguments
2
Output type 0 or 1 (0 equals to false, 1 equals to true)
Example if x=3 and y=3 as x!=y yields 0
if x=3 and y=5 as x!=y yields 1
4.2.4.12 Logical Greater than