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

Help , What''s hysteresis ?

What''s hysteresis ?

Sub subtract instruction, SUB Subtract Instruction This  instruction  i...

SUB Subtract Instruction This  instruction  is used to  subtract the contents of any  register  or memory location from  the contents of  accumulator. There are two  formats as

Life interactive ups systems , Normal 0 false false false ...

Normal 0 false false false EN-IN X-NONE X-NONE Life   Interactive UPS Systems

Stc set carry instruction, STC Set Carry Instruction This instruction ...

STC Set Carry Instruction This instruction  sets   the carry  flag  to 1. The  instruction format is STC Flags except carry no other  flags are affected

Corrosion, I want to know whether the circuits for both methods(linear pola...

I want to know whether the circuits for both methods(linear polarization resistance and electrochemical impedance spectroscopy) are same or not?

Transformer question, When I read the details of how a transformer works an...

When I read the details of how a transformer works and apply those rules to a transformer where the primary core cross-sectional area is twice that of the secondary, I come up with

Find the rotor copper loss, A three-phase, 50-hp, 440-V, 60-Hz, four-pole, ...

A three-phase, 50-hp, 440-V, 60-Hz, four-pole, wound-rotor inductionmotor operates at a slip of 0.03 at full load,with its slip rings short-circuited. The motor is capable of devel

Develop and execute a pspice program, Develop and execute a PSpice program ...

Develop and execute a PSpice program to solve for the current I 2 in Figure.

Compute the force, Q. Consider a current element I 1 d ¯ l 1 = 10 dz ¯ az...

Q. Consider a current element I 1 d ¯ l 1 = 10 dz ¯ az kA located at (0,0,1) and another I 2 d ¯ l 2 = 5dx ¯ ax kA located at (0,1,0). Compute d ¯ F 21 and d ¯ F 12 experienc

What do you mean by feedback in amplification, Q. What do you mean by Feedb...

Q. What do you mean by Feedback in amplification? Feedback :   Feedback in its broadest sense means that a certain amount of the output signal is "fed back" into the input. An

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