There's a
Cat and Mouse game with Bits on JavaRanch you may want to check out.
It's easiest to flip the bits and add one to get a negative number.
Here's another way to look at it.
If you substract the highest bit from the rest and negate it.
I'm rusty on bits but here's some examples:
[ August 14, 2002: Message edited by: Greg Ostravich ]
[ August 14, 2002: Message edited by: Greg Ostravich ]