D-Link DES-3326S manual Brief Review Bitwise Logical Operations

Models: DES-3326S

1 349
Download 349 pages 45.05 Kb
Page 342
Image 342

C

BRIEF REVIEW OF

BITWISE LOGICAL

OPERATIONS

AND

The logical AND operation compares 2 bits and if they are both “1”, then the result is “1”, otherwise, the result is “0”.

 

0

1

0

0

0

1

0

1

OR

The logical OR operation compares 2 bits and if either or both bits are “1”, then the result is “1”, otherwise, the result is “0”.

 

0

1

0

0

1

1

1

1

XOR

The logical XOR (exclusive OR) operation compares 2 bits and if exactly one of them is a “1”, then the result is “1”, otherwise the result is “0”.

0 1

Page 342
Image 342
D-Link DES-3326S manual Brief Review Bitwise Logical Operations