128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | VALUE |
---|---|---|---|---|---|---|---|---|
0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 60 |
0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 13 |
Type | Argument | Result | Value |
---|---|---|---|
and | 60 & 13 | 0000 1100 | 12 |
or | 60 | 13 | 0011 1101 | 61 |
xor | 60 ^ 13 | 0011 0001 | 49 |
Type | Argument | Result | Value |
---|---|---|---|
One's Compliment | ~60 | 1100 0011 | 195 |
Type | Argument | Result | Value |
---|---|---|---|
Right Shift | 60 >> 1 | 1001 1110 | 29 |
Left Shift | 60 << 2 | 1111 0000 | 240 |