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

Ins increment register pair instruction , INS  Increment Register Pair Ins...

INS  Increment Register Pair Instruction Contents of the registers pair R P will be  incremented by one  and the  result  will be stored  in the  same  register pair. It is

Ldst, Design a logic circuit with 4 inputs A, B, C & D that will produce o...

Design a logic circuit with 4 inputs A, B, C & D that will produce output ‘1’ only whenever two adjacent input variables are 1’s. A & D are also to be treated as adjacent, impleme

Sommerfield’s free electron theory, Write down basic postulates of sommerfi...

Write down basic postulates of sommerfield’s free electron gas model. Show that the number of energy states per unit energy is given by g(E) = 4Rv/h 3 (2m) 3/2 E 1/2 .  What is

Transformer box, a) Illustrate the Schematic diagram of the Transformer Box...

a) Illustrate the Schematic diagram of the Transformer Box used in the Practical Session b)  Calculate the output voltage on an Oscilloscope and determine its amplitude and freq

What are the display devices, Q. What are the Display Devices? Display ...

Q. What are the Display Devices? Display devices can be categorized as on/off indicators, numeric, alphanumeric, or graphical displays. They may also be classified as active an

Design a mealy system, Design a Mealy system whose output is 1 iff there ha...

Design a Mealy system whose output is 1 iff there have been exactly two 1's followed by a 0 and then a 1. (a) Assume overlapping is allowed (b) Assume overlapping is not

Calculate the open circuit voltage, This question is designed to give you ...

This question is designed to give you practice in manipulating circuit equations using j notation, and to demonstrate that techniques that you have already studied in the d.c. c

Inductor, assignment for inductor

assignment for inductor

Electronics, Let me know if you can help during the test

Let me know if you can help during the test

Salient features of nep, Salient Features of NEP: Access to electrici...

Salient Features of NEP: Access to electricity: The policy not only envisages access to electricity for all but it also emphasizes in which all consumers, particularly t

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