The Gateway to Computer Science Excellence
0 votes

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

in CO and Architecture by Junior (777 points) | 29 views

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

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??


Result should be in 1 bit


  • 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.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,291 answers
104,903 users