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

Explain how memory paging is used for memory addressing, Explain how memory...

Explain how memory paging is used for memory addressing. The memory paging mechanism placed inside the 80386 and above permits any physical memory location to be assigned to se

Starting methods for polyphase induction motors, Starting Methods for Polyp...

Starting Methods for Polyphase Induction Motors When high starting torques are required, a wound-rotor induction motor, with external resistances inserted in its rotor circuits

Evaluate the temperature corresponding to a thermistor, Question: (a) A...

Question: (a) A tube from one end of a differential pressure transducer is placed at the bottom of a cylindrical cup (D= 0.8m, H= 0.1m) to measure mass flow rate. The cup i

Working of bootstrap sweep circuit, analysis and detail working of bootstra...

analysis and detail working of bootstrap sweep circuit

What is polymerised resultant of phenol and formaldehyde, Phenol and Formal...

Phenol and Formaldehyde are polymerised to a resultant product known as (A) PVC.                                  (B) bakelite. (C)  Polyester.                        (D)

Fast recovery diodes - types of power diodes , Fast  Recovery diodes ...

Fast  Recovery diodes The fast  recovery  diodes low recovery times. These diodes  are manufactured by diffusion. They are used in converter circuits where  the speed  of reco

Compute the received carrier frequency, Consider a transmitter S which radi...

Consider a transmitter S which radiates a sinusoidal carrier frequency of 1850 MHz. For a vehicle moving at 26.82 m/s, compute the received carrier frequency if the vehicle is movi

Sod output - serial input output ports , SOD Output Serial output data ...

SOD Output Serial output data  single  bit can be sent  out through this pin using SIM  command  discussed in details in chapter8.

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