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 total emf and armature current., Q.   In a 110V compound generator...

Q.   In a 110V compound generator, the armature, shunt and series winding resistance are 0.06?, 25? and 0.04? respectively. The load consists of 200 lamps each rated 55W, 110V conn

Transformers., Calculations of sending line voltage

Calculations of sending line voltage

Quality control, three reasons why a chamfer shouldn''t be considered an un...

three reasons why a chamfer shouldn''t be considered an unimportant dimension

Explain daa instruction, Explain DAA instruction. DAA: The DAA instruct...

Explain DAA instruction. DAA: The DAA instruction follows the instruction ADC or ADD to adjust the result in a BCD result. The DAA instruction performs only with the AL registe

Show npn common collector amplifier, Q. Show NPN Common Collector Amplifier...

Q. Show NPN Common Collector Amplifier? The common collector amplifier, often called an emitter follower since its output is taken from the emitter resistor, is useful as

Calculate voltage and frequency, The stator and rotor of a three-phase, 440...

The stator and rotor of a three-phase, 440-V, 15-hp, 60-Hz, eight-pole, wound-rotor induction motor are both connected in wye and have the following parameters per phase: R1 = 0.5

Determine the highest value of voltage regulation, Q. A 25-kVA, 2200:220-V,...

Q. A 25-kVA, 2200:220-V, 60-Hz, single-phase transformer has an equivalent series impedance of 3.5 + j4.0  referred to the primary high- voltage side. (a) Determine the highest

Draw a circuit using the cascade system, Design and draw a circuit using th...

Design and draw a circuit using the cascade system to operate two cylinders (A and B) which, on the operation of a start valve, produces the sequence A - B + B - A+. The cylinder

Thyristor terminology , Thyristor  Terminology The followings  terms ...

Thyristor  Terminology The followings  terms are used in SCR  specifications: Latching current : The  latching  current is  the value of on stat e current  required  to mai

Hahaha, Ask question #Minimum 10gzhahahaau0 words accepted#

Ask question #Minimum 10gzhahahaau0 words accepted#

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