Two's complement

Here is 75 converted to a negative:

MSB 64 32 16 8 4 2 1 Value
0 1 0 0 1 0 1 1 75

Flip the bits

MSB 64 32 16 8 4 2 1 Value
1 0 1 1 0 1 0 0 -76

Add a 1

MSB 64 32 16 8 4 2 1 Value
1 0 1 1 0 1 0 1 -75

Author: Matei Cotocel

Created: 2021-11-13 Sat 19:35

Validate