Digital Logic20795 marksNumerical: binary arithmetic and BCDcompliments
Carry out the following tasks:a. Perform 2's complement subtraction of 010110 - 100101b. Represent decimal number 10 in its BCD form
Carry out the following tasks:a. Perform 2's complement subtraction of 010110 - 100101b. Represent decimal number 10 in its BCD form [5]
- Part a: Subtraction $010110 - 100101$ (both 6-bit binary numbers) - Part b: Represent decimal 10 in BCD --- - Minuend $A = 010110$ - Subtrahend $B = 100101$ 1's complement (invert bits): $$100101 \rightarrow 011010$$ Add 1: $$011010 + 1 = 011011$$ So 2's complement of $B = 011011$ There is no c...