Solve the following using 8 digit nines complement arithmeti
Solution
Ans)
e) 19810=1100 01102, -198----1\'s compliment -198= 0011 1001
7710=0100 11012, -177----1\'s compliment -177=1011 0010
--------------------------------------------------------------------------------------------------
-198-77=1110 1011
+1
----------------------------------------------------------------------------------------------
-198-77=1110 1100
Magnitude by doing 1\'s compliment =0001 0011=19
So we get -198-77=-19 because with 8 bits we cannot represent -198-77=-275,so we get wrong answer,as you asked to do for 8-bit ,i have done the process ,ultimately you get wrong answer
-----------------------------------------
If we take 10 bits then result will be as follows
19810=001100 01102, -198----1\'s compliment -198= 110011 1001
7710=000100 11012, -177----1\'s compliment -177= 111011 0010
--------------------------------------------------------------------------------------------------
-198-77= 101110 1011
+1
----------------------------------------------------------------------------------------------
-198-77=101110 1100
Magnitude by doing 1\'s compliment =010001 0011=275
So we got the right answer this time -275
------------------------------------------
Only 1 question per post will be answered please
