Representation of negative number, Electrical Engineering

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.

Posted Date: 4/4/2013 2:41:12 AM | Location : United States







Related Discussions:- Representation of negative number, Assignment Help, Ask Question on Representation of negative number, Get Answer, Expert's Help, Representation of negative number Discussions

Write discussion on Representation of negative number
Your posts are moderated
Related Questions
Future scope on MATLAB in India

Q. Explain AC voltage controllers? Common applications for these controllers are found in fan, pump, and crane drives. Figure shows three-phase symmetrical ac voltage-controlle

y more number of resistance and capacitor are used in a circuit what is the purpose to add ore than one..?

Explain pnp transistor circuit . pnp transistor: A transistor consist of  three terminals. In this pnp transistor there is two blocks of p- type semiconductors that are separa

What is synchronous data transfer? It is a data method which is used when the I/O device and the microprocessor match in speed. To transfer a data to or from the device, the us

Signals in Noise: Let us now consider a weak information signal that is to be amplified by a noisy amplifier. The signal-to-noise ratio (SNR), usually expressed in decibels, be

Q. The inductance per unit length in H/mfor parallel plate in?nitely long conductors in air is given by L = µ 0 d/w = 4π×10 -7 d/w, where d and w are inmeters.Compute L (per unit

Give some applications of manganin. Manganin is alloy of nickel, copper and manganese. This is used shunts in measuring instruments, for making their coils and for making pr

3-Phase 4 Wire Meters with CT and MD If load is commonly more than 50 A, CT operated meters should be used. It is to be remembered that CTs should be properly selected for acc

Q. What is Elementary Diode Circuits? Semiconductor diodes are used in a wide variety of applications. Their usage abounds in communication systems (limiters, gates, clippers,