• Home
  • Tutorials
  • Interviews
  • Info Seed
  • Forums
  • Projects
  • Links
  • Contact Us
Digital Electronics
NUMBER SYSTEM
INTRODUCTION
DECIMAL & BINARY SYSTEM
OCTAL & HEXADECIMAL SYSTEM
DECIMAL to BINARY CONVERSION
DECIMAL to OCTAL & HEXADECIMAL
BINARY to OCTAL & HEXADECIMAL and vice versa
ADDITION
SUBTRACTION
MULTIPLICATION & DIVISON
COMPLIMENTS
SUBTRACTION using r's COMPLIMENTS
BINARY CODES
BOOLEAN ALGEBRA
K MAPS
COMBINATIONAL CKT
SEQUENTIAL CIRCUITS
TIMING CIRCUITS

 

(r – 1) ’s compliment:   (M – N) r

 This is similar to r’s compliment. There is a difference while dealing with the final carry we get

 If we have both M & N positives, then

The Procedure for doing subtraction using (r – 1) ’s compliment is as follow:

  1. Take (r – 1) ’s compliment of subtrahend N
  2. Add it to minuend M
  3. If we get a carry, add 1 to the result otherwise take (r – 1)’s compliment of the result and place a –ve sign in front of it.

If we have negative M & positive N, then i.e. – m – n where m & n are magnitudes of M&N

The Procedure for doing subtraction using (r – 1) ’s compliment is as follow:

  1. Take (r – 1) ’s compliment of subtrahend N
  2. Add it to minuend M

If we get a carry, add 1 to the result and also take (r – 1’s compliment and place a –ve sign in front of it otherwise if there is no carry then do nothing

Eg. 10101002 – 10001002

1’s compliment of 1000100 is 0111011 and then adds to 1010100

               

Eg. 10001002 – 10101002

        1’s compliment of 1010100 is 0101011 and it is added to 1000100

As we don’t have carry so we take 1’s compliment of the result and put the –ve sign in front

So answer is -0010000   

We don’t have to worry about whether M is larger or N is larger, carry which we get takes care of this thing. So one has to just follow the procedure and we’ll get the result.

 

previous next
| Copyright © 2009 exploreroots- All Rights Reserved | Disclaimer |