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

Cipper, when i/p voltg is grater than battery diode is clse or open

when i/p voltg is grater than battery diode is clse or open

Illustrate about the digital televisions, Illustrate about the Digital tele...

Illustrate about the Digital televisions Microprocessor would be used to control the below features, for instance: - Automatically tuning into television stations - allow

Common base configuration - bjt, Common base configuration: for pap t...

Common base configuration: for pap transistor connection for common base operation is as follow: common base means base is common to both input and output side of configurati

Project, really need help how to run the veener press line for wood-based p...

really need help how to run the veener press line for wood-based panels?

Explain various functions of telephone switching systems, Q. Explain variou...

Q. Explain various functions of telephone switching systems. Ans: Functions of telephone switching systems are: (i)  Attending: The system should be continually monito

Buck boost converter - power supplies , Buck Boost Converter The outpu...

Buck Boost Converter The output  of buck boost  regulator may be  less than  or greater than the  input  voltage. Since  the polarity of output  voltage  is opposite  to that

Explain phase-shift keying, Q. Explain phase-shift keying? In PSK, the ...

Q. Explain phase-shift keying? In PSK, the phase angle of a carrier is keyed between two values. When the values are separated by π radians, it is known as phase-reversal keyin

Explain the working of a photo - transistor with a sketch, Q. Explain the w...

Q. Explain the working of a photo - transistor with a sketch A second optoelectronic device that conducts current when exposed to light is the PHOTOTRANSISTOR. A phototransisto

What is meant by regulation, Q. What is meant by regulation? The output...

Q. What is meant by regulation? The output of most power supplies should be a constant voltage. Unfortunately, this is difficult to achieve. There are two factors that can caus

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