Example of binary subtraction - positive number , Electrical Engineering

Assignment Help:

Example  of binary  subtraction - positive number

Case 1.  Positive  number is more than negative number ( i e, answer is positive)

 Example   subtract  4510 ( 1011012 ) form 9210 ( 10111002.

 Solution: write  both numbers  is in 8 bit  form

01011100                                                                   9210

-00101101                                                                  -4510

1 s complement  of the negative number  =              11010010

Add 1                                                                                 1

2 s complement of the negative number =                11010011

This will represent -4510 in microprocessor                

Adding 2 s complement  of the  negative  number with the  first (positive ) number

      01011100 (9210)

      +11010011( -4510)

 Carry   00101111( +4710)

 Ignoring carry the  answer is  + 0010 11112 ( +4710)

 


Related Discussions:- Example of binary subtraction - positive number

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

Diode circuits, Diode Circuits: Prob. (a) Draw the piecewise linear v...

Diode Circuits: Prob. (a) Draw the piecewise linear volt ampere characteristic of a p n diode. What are the circuit models for the ON state and the OFF state. (b) Determ

Electric Drive, project to write a program to simulate a dc motor on a matl...

project to write a program to simulate a dc motor on a matlab

Circuit theory ., it''s 3 assignments and each assignment have 7 questions ...

it''s 3 assignments and each assignment have 7 questions so each assignment have 1 hour when I open it I have only 1 hour to finish it I can show him or her the practice question t

Marginal tax rate, Stratos Corporation is a privately held tablet semicondu...

Stratos Corporation is a privately held tablet semiconductor technology firm with bright growth prospects.The past 5 years have seen the firm evolve from a pure startup to a profit

Push instruction - stack operations , PUSH Instruction This  instructi...

PUSH Instruction This  instruction copies  the contents  of the specified  register  pair into the  stack. The  contents  of stack  pointer register  are decremented by two. Th

TRANSFORMER, what are the characteristics of transformer?

what are the characteristics of transformer?

Add the contents of register - add instruction , Add the Contents of Regist...

Add the Contents of Register   This  instruction is used to add the contents  of register R with  the contents  of accumulator  and result  of operation is stored  in the accumu

#speed control, explain speed control of dc motor

explain speed control of dc motor

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