2079 5

CSC116 · 2079 · 5 marks

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]

Digital LogicChapter 1: Binary SystemscomplimentsNumerical: binary arithmetic and BCD
  • 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...