PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] ones'
Date: Friday, 09 Oct 2020, 10:23:02


    > Message Posted By: Unknown
    >
    > If we numbers with 6 bits in ones' complement (for example), and try to
    > add 2^5 -2 with 2^5-2, then is it true that the sum cannot be normalized
    > back to within a 6-bit ones' complement? Would this be considered an
    > overflow?

The range for 6-bit ones' complement is -32 < x < 32 and
2^5-2 = 30 is represented by itself.

30 + 30 = 60 is not representable; i.e., the addition
overflows.

Correspondingly, when we add the representative of 30 to
itself and normalize, we get 29, the representative of
29, which is not the sum of 30 and 30.

--Stan-
PREV INDEX NEXT