Digital Logic2081.25 marksNumerical: Binary subtraction using 1's complementBinary subtraction using complements
Perform A - B with the given binary numbers using 1’s complement. A = 1010100, B = 1000100.
Perform $A - B$ with the given binary numbers using 1’s complement. $A = 1010100$, $B = 1000100$. [5]
- $A = 1010100$ - $B = 1000100$ - Operation: $A - B$ using 1's complement Decimal check of inputs: - $A = 10101002 = 64+16+4 = 84$ - $B = 10001002 = 64+4 = 68$ Invert every bit of $B$: Bit-by-bit (right to left): - $0+1 = 1$ - $0+1 = 1$ - $1+0 = 1$ - $0+1 = 1$ - $1+1 = 0$, carry 1 - $0+1+1 = 0$, ...