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
What are the modes used in display modes? 1. Left Entry mode In the left entry mode, the data is going into from the left side of the display unit. 2. Right Entry Mode

Determine i L (t) and v C (t) for t> 0 in the circuit given in Figure.

PID controllers are popularly adopted in a wide range of industrial processes. The objective of this design practical is to study the way this PID controller changes system dynamic

Demodulation of SSB signals also requires the use of a phase-coherent reference. Figure shows the general configuration to demodulate the SSBsignal.Asmall carrier component, which

A microstrip antenna system operating at 915MHz must be designed using Rogers RO3010 substrate with the thickness of 0.635mm.

what is the formula for sag?

The automobile shall not rely on fossil fuel for energy. The automobile shall be designed using available and emerging technology. The automobile shall seat at least five

R-2R LADDER CONVERTER Figure shows a 4-bit R-2R ladderD/Aconverter,which contains a reference voltage source, a set of four switches, two resistors per bit, and an op amp. The

Registers Various  registers  shown in figure  are discussed  below  in detail.

Define the term real time clock. A real-time clock maintains the time in real time, which is, in hours and minutes. For the real-time clock the software contains an interrupt