Diminished Radix Complement Arithmetic (2)
Example: Add -(1001)2 and -(0011)2 .
One’s complement of the operands are: 10110 and 11100
10110 + 11100 = 110010 (carry)
Correct result is 10010 + 1 = 10011.
Example: Add +(75)10 and -(21)10 .
Nine’s complements of the operands are: 075 and 978
075 + 978 = 1053 (carry)
Correct result is 053 + 1 = 054
Example: Add +(21)10 and -(75)10 .
Nine’s complements of the operands are: 021 and 924
021 + 924 = 945 (no carry, so this is the correct result).