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

Design a combination circuit, Design a combination circuit to combine two s...

Design a combination circuit to combine two signals as follows: v 0 = -2 v 1 - 8v 2 - v 3 The following specifications are imposed: R in ≥ 20 k? at all inputs All

Explain the different instruction formats, Explain the different instructio...

Explain the different instruction formats with examples The instruction set is grouped into the following formats One byte instruction MOV C,A Two byte instruction

Crystal-controlled oscillator circuits, Circuits, which provide sinusoidal ...

Circuits, which provide sinusoidal waveforms, are but useful in themselves and form the basis of many other circuits, such as square and triangular waveform generators, and clocks.

Calculate the average length of the chain, The upper end of a hanging chain...

The upper end of a hanging chain is fixed whereas the lower end is attached to a mass M. The (massless) links of the chain are ellipses with major axes and minor axes l+a and l-

Transformer, how back emf is produced in transformer?

how back emf is produced in transformer?

Determine current for a bjt, Q. For a BJT with vBE = 0.7V, I CBO = 4 nA, ...

Q. For a BJT with vBE = 0.7V, I CBO = 4 nA, i E = 1 mA, and i C = 0.9 mA, evaluate α, iB,iSE, and β.

What is direct memory access, What is Direct memory access? Direct memo...

What is Direct memory access? Direct memory access (DMA) is a process wherein an external device takes over the control of system bus by the CPU.DMA is for high-speed data tran

Wireless and communication, With a maximum excess delay of and a chip durat...

With a maximum excess delay of and a chip duration of , the multipath components fall in delay bins. This means that we experience leakage of energy between chips and the channel i

Explain noise, Explain Noise Noise is unwanted signals which degrade t...

Explain Noise Noise is unwanted signals which degrade the desired signal content and therefore the performance of the system. Noise might be produced either externally or inte

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