On Sun, May 18, 2014 at 5:19 PM, Tom Van Baak (lab) <[email protected]> wrote:
> -128 is 0x80
> +127 is 0x7F

So it's "twos complement"  to negate a number you invert all the bit
then add one.

The fun part of 2's complement is when you count in binary from -1 to +1
-1 = 1111
0 = 0000
+1 = 0001
The sign bit flips and all you need is a simple ripple counter.
-- 

Chris Albertson
Redondo Beach, California
_______________________________________________
time-nuts mailing list -- [email protected]
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Reply via email to