search
Log In
0 votes
90 views

How do we perform 0 – 1 in 2’s complement subtraction  using 1-bit register??

in CO and Architecture 90 views
0
$0-1=-1$

if u want to represent in $1$ bit, then sign bit not shown, only 1 will be in result
0

For 0 - 1 

Using 2's complement in we could represent only -1 and 0 when no of bits=1.

The 2's complement of 1 is  1 and  when we add 0 with 2's complement of 1 then we  get1 as the answer and no carry and that is why we have a borrow of 1??

0

Result should be in 1 bit

right?

  • So, first do subtraction
  • then do 2's complement
  • and then take 1 rightmost bit as result

Please log in or register to answer this question.

Related questions

0 votes
1 answer
1
82 views
In Single Precision floating point number when E=0 and M not equals to 0 it represents a fractional form..(BiAS=+127) when writing the decimal form why do we right (-1)^S * (1.M) * 2^(-126) instead of (-1)^S * (1.M) * 2^(-127)??
asked Feb 10, 2019 in CO and Architecture DIYA BASU 82 views
0 votes
3 answers
2
113 views
How to do:(1000)base3 – (121)base3 without converting them to base 10 the final answer should be in base3
asked Feb 4, 2019 in CO and Architecture DIYA BASU 113 views
0 votes
0 answers
3
125 views
what is (120)base 10=( ? )base 64 ??
asked Feb 4, 2019 in CO and Architecture DIYA BASU 125 views
1 vote
2 answers
4
87 views
How addition of $+3$ and $-3$ in sign magnitude form is $-5?$
asked Mar 19, 2019 in Digital Logic srestha 87 views
...