Show the r’s complement, Electrical Engineering

Assignment Help:

Q. Show the r’s Complement?

Step1- get the (r-1)'s complement

Step 2- add 1 to the result ex.

           93510

                                    9 9 9

                                    9 3 5 -

                           0 6 4  (r-1)'s complement

                          0 6 4

                              1 +

                           0 6 5

  • When using the r's complement we add usually, and ignore any carry from the most significant digit (MSD)
  • If the result is in negative, it will be in r's complement form ex.

            395 - 210

210 is 789 + 1 = 790 in 10's complement form

            395

            790+

            185     

Why Use 2's Complement

  • The left-most bit is still a sign bit

            1  for negative

            0  for positive

  • One way to write 0

            +0 0000 0000

            -0  0000 0000  (how?)

  • With n bits we can represent -2n-1 to ( 2n-1 - 1)

Let's now consider the subtraction 22 - 35, again both represented as 7-bit numbers with a sign bit.

                        +22 in binary is:                 00010110
                        +35 in binary is:                 00100011
                        -35 in binary is:                  10100011
                        -35 in 1's complement is:    11011100

The sum to be calculated is now:

                                            00010110
                                         + 11011100
                                            11110010 

This time the addition does not produce a 9th bit, but the sign bit is 1. In this case it again tells us two things:

  • the answer is negative
  • the answer is represented in 1's complement notation

So to get the final answer we need to turn our answer into binary. If the 1's complement notation is 11110010 then the binary representation is 10001101 (note - the sign bit doesn't change, it's still a negative number!). This is the binary for -13, again, the correct answer.


Related Discussions:- Show the r’s complement

Parallel operation of interconnected synchronous generators, Parallel Opera...

Parallel Operation of Interconnected Synchronous Generators In order to assure continuity of the power supplywithin prescribed limits of frequency and voltage at all the load p

Define the term assembler directives, Define the term assembler directives....

Define the term assembler directives. An assembler directive is a statement to provide direction to the assembler to perform the function of assembly process. The assembler di

Digital Electronics, Design a MOD-6 synchronous counter using J-K Flip-Flop...

Design a MOD-6 synchronous counter using J-K Flip-Flops.

Sketch the depletion mosfet drain characteristics, Q. Sketch the depletion ...

Q. Sketch the depletion MOSFET drain characteristics The depletion-type MOSFET has a structure similar to that of the enhancement-type MOSFET with one important difference: The

List out the reasons for automation, Describe the term (i) Automation ...

Describe the term (i) Automation (ii) Automated lines 04 List out the reasons for automation and discuss in detail the process of work part transport.

Design a multiplexer and anomalous signals, 1. The size of the multiplexer ...

1. The size of the multiplexer used to implement a truth table can be cut in half (e.g. 4 inputs instead of 8) if one of the variables is used as an input instead of being connecte

Dc machine closed-loop dynamics, i) Calculate the eigenvalues of a 100 hp,...

i) Calculate the eigenvalues of a 100 hp, 1150 rpm dc machine at rated flux with no extra load inertia. Use the "hot" value of the armature resistance. Calculate estimates of t

Net force on the wire due to the interaction of the b-field, Q. (a) Show by...

Q. (a) Show by applying Ampere's circuital law that themagnetic field associated with a long straight, current-carrying wire is given by B φ = µ 0 I/(2πr), where the subscript φ d

Phase equilibria, distinguish between brittle and ductile fracture

distinguish between brittle and ductile fracture

Find the minimum load resistor, Q. Consider the non inverting amplifier. Le...

Q. Consider the non inverting amplifier. Let R i = 1k and R f = 2k. Let the op amp be ideal, except that its output cannot exceed ±12 V at a current of ±10 mA. (a) Find the

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd