Representation of negative number, Electrical Engineering

Assignment Help:

Representation of Negative Number:

As  mentioned  in chapter 1 in 8085  negative  numbers are represented in 2 complement  form  and subtraction is  performed  using 2  complemented  method.  If the  result of subtraction is negative  it will also  be in 2 complement  form. But  D7 ( left most bit) is used  to indicate sign  of a number. If D7  is 0 the number  is positive  and if D7  is 1  the number is negative D7  is 1 for  2 complement of  all D7 bit  numbers.

Important : Generally  people  have misconnect that the  difference  between a positive  number and a  negative  number is only in  D7.  They assume that if  +5 10 is  written  in 8 bit  binary as 00001012 then -510  can be  written  as 10000102, which  is not  correct.

Refer followings  table  showing various  positive  and negative numbers to understand the concept  of negative  number as used  in microprocessors.

a.All negative numbers have 1 in  their left  most bit positions.

b.All negative  numbers are 2  complement  form  of their  corresponding  positive  numbers.

c. All negative  have their  equivalent positive  decimal number. It is up to the programmer  and the  application that whether  to use it as  negative or positive number.

d.If two numbers are added/ subtracted the  result will be as desired whether is a singed  or unsigned operation. See  followings  example.


Related Discussions:- Representation of negative number

Use of n-channel jfet, Q. Use of N-channel JFET? Generally, N-channel J...

Q. Use of N-channel JFET? Generally, N-channel JFETs are more commonly used than P-channel. With no voltage applied between gate and source, the channel is a wide-open path for

Classify the magnetic materials, Classify the magnetic materials into diama...

Classify the magnetic materials into diamagnetic, paramagnetic, ferromagnetic and ferrimagnetic materials. Also give examples of each. Classification of magnetic materials:-

Logic circuits, : A farmer owns two barns; one north of a creek and the oth...

: A farmer owns two barns; one north of a creek and the other south of the creek. The farmer has a Cabbage, a Goat, and a Wolf. The Farmer needs to put each item in a barn every ni

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.

Working of closed cycle and open cycle brayton cycle, Give the layout of a ...

Give the layout of a modern steam power plant and illustrate it briefly. With the help of schematic diagrams illustrate the construction and basic working of closed cycle and op

P type material - semiconductor material, p type material: p type ma...

p type material: p type material is formed by doping aerial  crystal with impurity atoms having three valance electrons. The diffused impurities with three valence electrons

Illustrate in detail b-spline and cubic bezier surfaces, Define ruled surfa...

Define ruled surface and surface of revolution. Illustrate in detail B-spline and cubic Bezier surfaces with their important properties.

What is balanced budget, Q. What is Balanced Budget? Balanced Budget: A...

Q. What is Balanced Budget? Balanced Budget: An annual budget (like for a government) in that revenues perfectly offset expenditures, so that there is neither a deficit nor a s

Resistivity, Low and high resistivity materials and their applications

Low and high resistivity materials and their applications

Analog signal processing, Derive Equation 13-20 pertaining to the convers...

Derive Equation 13-20 pertaining to the conversion algorithm based on redefined unit capacitor

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