Binary subtraction , Electrical Engineering

Assignment Help:

Binary Subtraction

Negative numbers are represented in 2 complement form and subtraction is also  per formed  using  2 complement  method in microprocessor. Hence we will  discuss only 2  compliment method  of subtraction in this book.

To find  2 compliment of any binary  number

Use followings  steps

Find 1 complement  of the given  binary  number convert all 0 to 1 and  all 1 to 0 s.

Add 1  to the obtained d1  complement number to get the 2 complement of the original number.

The  obtained  binary number will  be the  negative  of the given  number.

Example :  Find 2 complement  of 010110112.  ( equal to + 9110)

Solution : 1 complement  of the given number is:    10100100

    Add 1                                                                            1

The 2 complement  form of the number                  101000101

This  will represent  -9110 in microprocessor.


Related Discussions:- Binary subtraction

Explain the working of leds, Q. Explain the working of LEDs OPTOELECTRO...

Q. Explain the working of LEDs OPTOELECTRONIC devices either produce light or use light in their operation. The first of these, the light-emitting diode (LED), was developed to

Explain the working principle of a triac, Q. Explain the working principle ...

Q. Explain the working principle of a TRIAC. "Triac" is an abbreviation for three terminal ac switch. 'Tri'-indicates that the device has three terminals and 'ac' indicates tha

Wire-line and fiber-optic channel, Q. Wire-line and Fiber-optic channel? ...

Q. Wire-line and Fiber-optic channel? Wire-line channels are used extensively by the telephone network for voice, data, and video transmission. Twisted-pair wire lines (with

Determine efficiency on diffrent load cycle, Q. A 75-kVA transformer has an...

Q. A 75-kVA transformer has an iron loss of 1 kW and a full-load copper loss of 1 kW. If the transformer operates on the following load cycle, determine the all-day efficiency:

Laplace transform, 1. Find the general solution y(t) of the ordinary di ere...

1. Find the general solution y(t) of the ordinary di erential equation where ω is a non-negative constant. (Consider the ω = 0 and ω > 0 cases separately). 2. Use Laplac

Lissajous patterns and their use, Consider the characteristics of patterns ...

Consider the characteristics of patterns that appear on the screen of a CRT, when sinusoidal voltages are simultaneously applied to horizontal and vertical plates. These patterns a

Generator, On which principle the generator works?

On which principle the generator works?

Customer indexing scheme, Customer Indexing Scheme: Customer indexing ...

Customer Indexing Scheme: Customer indexing and asset codification system provides a platform to enable the utilities to generate verifiable and validated data of consumers an

Determine the forced component of the voltage, Q. Consider an RL series cir...

Q. Consider an RL series circuit excited by (a) v(t) = 20e -2t V, and (b) v(t) = 20 V. Determine the forced component of the voltage across the inductor for R = 2  and L = 2H.

Case 1 b>a - program description , Case 1 (B>A) Suppose XX = 01H ( s...

Case 1 (B>A) Suppose XX = 01H ( stored in a) and YY = 03H (stored  in B).then carry flag  will set by  CMP  instruction since B>A  in this case JNC  will not  transfer the e

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