* Reply to a message in personal_mail.
Cameron Clark wrote in a message to Tom Torfs:
CC> I don't quite remember onez complement. Is the following true?
CC> 0000 0001 bin one as a positive char
CC> 1111 1110 bin toggle all bits
CC> 1111 1111 bin add one to make one as a negative char
CC> Or is that 2's complement.
That's 2-complement. 1-complement, as the name already implies, simply
toggles all bits. That's the reason you have +0 (0000 0000) and -0 (1111
1111).
greetz,
Tom
tomtorfs@mail.dma.be
--- timEd/2 1.10+
---------------
* Origin: 80X86 BBS 32-15-24.62.32 V.34/V.FC (24h/24h) (2:292/516)
|