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

Tariff policy - electricity policies, National tariff policy: The Centr...

National tariff policy: The Central Government notified the National Tariff Policy on January 6, 2006, for the power sector in line along with the Section 3 of the EA, 2003. Wi

What ratio is needed for the cable, Q. If b and a are the radii of the oute...

Q. If b and a are the radii of the outer and inner conductors, respectively, of a coaxial cable using a polyethylene dielectric (ε r = 2.26), what ratio b/a is needed for the cabl

Determine the regulation of three-phase, A three-phase, six-pole, wye-conne...

A three-phase, six-pole, wye-connected synchronous generator is rated at 550 V and has a synchronous reactance Xs = 2 . When the generator supplies 50 kVA at rated voltage and a p

24 - outlet uni-selector, In this case, 24 simultaneous calls can be put th...

In this case, 24 simultaneous calls can be put through switch. Generally a 24-outlet Uni-selector is used as a selector hunter. Every one of the 24 outlets is connected to one two-

Data bus - bus organisation , Data bus The data  bus is the  group of 8...

Data bus The data  bus is the  group of 8 bit   used  to carry data. There  line are  bidirectional data can flow  in both  directions i e form  microprocessor to  peripherals

Compute product of inductance and capacitance, Q. The inductance per unit l...

Q. The inductance per unit length in H/m for parallel-plate infinitely 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 un

Briefly explain single mode and multimode fibres, Briefly explain single mo...

Briefly explain single mode and multimode fibres The optical fibres were categorized within two according to the number of modes it passes as: • Single mode fibres • Multi mode

Show a block diagram for a bcd to excess-3 code converter, Q. A common requ...

Q. A common requirement is conversion from one digital code to another.Develop a table of the BCD code and the excess-3 code to be derived from it, for the decimal digits 0 to 9. S

Produce electrical power using solar cell - electrical power, 1. Suppose th...

1. Suppose the California government sets aside a square patch of land that is 10 kilometers on each side and plans to use this land to generate electrical power with wind turbines

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