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

Find the turns ratio, Q A60-Hz, 100-kVA, 2400/240-V(rms) transformer is use...

Q A60-Hz, 100-kVA, 2400/240-V(rms) transformer is used as a step-down transformer from a transmission line to a distribution system. Consider the transformer to be ideal. (a) Fi

Determine the value of capacitance to give resonance, Determine the value o...

Determine the value of capacitance to give resonance: A circuit shown in Figure having a resistance of 5 Ω, an inductance of 0.4 H and a variable capacitance in series is conn

What do you understand by orthographic projection, What do you understand b...

What do you understand by orthographic projection ? Illustrate with the help of Matrix representation.

Commercial losses in electrical systems, Commercial Losses in Electrical Sy...

Commercial Losses in Electrical Systems Commercial losses are caused by pilferage, theft, defective meters, and errors in meter reading and in estimating un-metered supply of

Find the net force experienced by a positive charge q, Q Two charges of equ...

Q Two charges of equalmagnitude 5µC but opposite sign are separated by a distance of 10 m. Find the net force experienced by a positive charge q = 2 µC that is placed midway betwee

What is the purpose of carry flag and zero flag, What is the purpose of car...

What is the purpose of carry (c) flag and zero (z) flag? Carry flag conatins the carry after addition or borrow after subtraction. This carry flag also shows error conditions,

Adc instruction, ADC   Instruction This instruction is used to add th...

ADC   Instruction This instruction is used to add the contents of any register of any register  memory location and carry  flag with the  contents of accumulator  and result  i

Block diagram of proportional and integral controller, Q. Show Block diagra...

Q. Show Block diagram of proportional and integral controller? The block diagram of Figure illustrates a typical microprocessor system used to implement the digital PI controll

Advantages of bjt over mosfet, Advantages of BJT over MOSFET: BJTs have...

Advantages of BJT over MOSFET: BJTs have some benefits over MOSFETs for at least two digital applications. Very first, in high speed switching, they do not comprises the "large

Differentiator.., in case of a differentiator will the amplitude rise or fa...

in case of a differentiator will the amplitude rise or falls?

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