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

Sui subtract immediate i instructions , SUI  Subtract Immediate I Instruct...

SUI  Subtract Immediate I Instructions The 8 bit  data  specified  in the  instruction  is directly  subtracted  from the  contents of  accumulator  and results  of operation

MATLAB, Future scope on MATLAB in India

Future scope on MATLAB in India

Oscillator circuit with the help of block diagram, Q. Explain the condition...

Q. Explain the conditions to be satisfied for sustained oscillations in an oscillator circuit with the help of block diagram. The essential condition for sustained oscillations

Classify feedback control systems according to purpose, Q. Classify Feedbac...

Q. Classify Feedback control systems according to purpose of the system? • Position control systems. Here the output position, such as the shaft position on a motor, exactly fo

Determine the line current-total apparent power, A balanced three phase, fo...

A balanced three phase, four wire, WYE connect load consisting of per phase resistenance of A ohms and inductive reactance of D ohms/phase is connected to a B000 V three phase sour

Serial input output ports , Serial Input output Ports For serial  inpu...

Serial Input output Ports For serial  input  and output  there are  two pins  in 8085 microprocessor

Hall effect is associated with which material, Hall Effect is associated wi...

Hall Effect is associated with (A) Conductors. (B) Semiconductors. (C) Thermistors. (D)Solders. Ans: Hall Effect is associated with semiconductors.

PFC, How do you size power factor units at 11kV

How do you size power factor units at 11kV

Calculate the voltage across the capacitor, In the circuit above, V1 is a d...

In the circuit above, V1 is a dc supply which outputs 12V, R1 has a value of 100 Ω and C1 is 100µF. The switch has been left in the position shown for a long time such that there i

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