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

Abcd propagation , ABCD propagation of an optical ray through a system can...

ABCD propagation of an optical ray through a system can be explained by a simple 2_2 matrix. In ray optics, the characteristic of a system is given by the corresponding ray matrix

Determine the rated stator current, A three-phase, wye-connected, 2300-V, f...

A three-phase, wye-connected, 2300-V, four pole, 1000-kVA, 60-Hz synchronous machine has a synchronous reactanceXs = 5, a field resistance Rf = 10, and an approximately linear ma

Illustrate working of application layer, Q. Illustrate working of Applicati...

Q. Illustrate working of Application Layer? As the highest layer in OSI reference model, application layer provides services to users of OSI environment. Layer

Show block diagram of a 4-bit parallel-input shift register, Q. Show a bloc...

Q. Show a block diagram of a 4-bit, parallel-input shift-right register and brie?y explain its operation.

Management process of balanced score card, Management Process of Balanced S...

Management Process of Balanced Score Card The BSC (Balanced Score Card) proposes four a new management processes which separately and in combination, contributes to linking lo

Speed control of ac machine, what is meant by pole changing methods in ind...

what is meant by pole changing methods in induction motor

Explain pnp transistor circuit, Explain pnp transistor circuit . pnp tr...

Explain pnp transistor circuit . pnp transistor: A transistor consist of  three terminals. In this pnp transistor there is two blocks of p- type semiconductors that are separa

Resistors, what are the classifications of fixed resistor?explain

what are the classifications of fixed resistor?explain

Student, difference between cmp and sub in microprocessor.

difference between cmp and sub in microprocessor.

Physics, what is the significant of damping coficient

what is the significant of damping coficient

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