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

Compute the attenuation, Q. A rectangular air-?lled RG-52/U is made of bras...

Q. A rectangular air-?lled RG-52/U is made of brass (ρ = 3.9 × 10-8 m) and has dimensions a = 22.86 mm and b = 10.16 mm. (a) Determine ¯ Z0(= R0) at the limits of the practica

Find the value of the induced emf, Q. A six-pole, double-layer dc armature ...

Q. A six-pole, double-layer dc armature winding in 28 slots has five turns per coil. If the field flux is 0.025 Wb per pole and the speed of the rotor is 1200 r/min, find the value

Determine the mechanism of generation of the voltage, (a) Identify the semi...

(a) Identify the semiconductor type in the above diagram. (b) Explain the mechanism of generation of the voltage V AB in the above diagram. (c) An experimental setup like th

Clippers, Which clipper would you prefer between the series and the shunt c...

Which clipper would you prefer between the series and the shunt clipper? Why?

Develop a block diagram of an asynchronous decade counter, Q. Counting to m...

Q. Counting to moduli other than 2 is a frequent requirement, the most common being to count through the binary-coded decimal (BCD) 8421 sequence. All that is required is a four-st

Illustrate the basic use of binary in it, Q. Illustrate the basic use of bi...

Q. Illustrate the basic use of binary in IT ? The binary system is thus useful in IT because not only any number, but any information, can be represented in terms of only 0s an

Explain the cmp instruction, Explain the CMP instruction . CMP: The comp...

Explain the CMP instruction . CMP: The comparison instruction is a subtraction which changes only the flag bits; the destination operand certainly not changes. A comparison is h

Types of bias circuit for class a amplifiers, Types of bias circuit for Cla...

Types of bias circuit for Class A amplifiers: There are five common types of biasing circuits used with Class A bipolar transistor amplifiers: A. Fixed bias B. Collector

Literature review - software defined radio, Literature Review - Software De...

Literature Review - Software Defined Radio In this section, first two methods to estimate signal to noise ratio (SNR) are reviewed and a few methods for modulation classificati

What is the need of the resistance used in a clipper, Q. What is the need o...

Q. What is the need of the resistance used in a clipper? Resistor is used in a clipper to limit the current through the diode. To avoid the damage due to excessive current thro

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