Elmo HARmonica, HARSFEN0602 Bitwise not, Bitwise or, Logical Equality, Logical Inequality

Models: HARmonica HARSFEN0602

1 220
Download 220 pages 51.63 Kb
Page 24
Image 24

HARSFEN0602ElmoHARmonicaSoftwareManual

PRELIMINARYDRAFT

 

 

 

 

Output type

32 bit long integer.

 

 

Example

if x=1 as x^3=2

 

 

4.2.4.7Bitwise NOT

Notation

~

Description

Bitwise NOT

Number of

1

arguments

 

Output type

32 bit long integer.

Example

~3 is 0xfffffffc, which is actually –4

 

~3.2 is the same as !3

4.2.4.8Bitwise OR

Notation

 

Description

Bitwise OR

Number of

2

 

arguments

 

 

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.9Bitwise AND

Notation

&

 

Description

Bitwise AND

Number of

2

 

arguments

 

 

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.10Logical Equality

Notation

==

Description

Logical equality

Number of

2

arguments

 

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.11Logical Inequality

Notation

!=

Description

Logical inequality

Number of

2

arguments

 

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.12Logical Greater than

22

Page 24
Image 24
Elmo HARmonica, HARSFEN0602 Bitwise not, Bitwise or, Logical Equality, Logical Inequality, Logical Greater than