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

Program description , Program Description In the above  program  any t...

Program Description In the above  program  any two  numbers can be stored in register A and B ( by  replacing XX  and YY). Contents  of B are  compared with A. If  B CY = 0

Define successive approximation digital to analog converter, Define Success...

Define Successive Approximation Digital to Analog Converter? Successive approximation ADCs transform analog signals to digital data by comparing the incoming analog signal alo

Signals, Using the audiorecorder() function in MATLAB, make a recording of ...

Using the audiorecorder() function in MATLAB, make a recording of your voice. Use a sample rate of 8kHz, 16 bits per sample, and aim to record around 2 seconds worth. Quantize th

Define pipelining, Define pipelining? In 8086, to speedup the implement...

Define pipelining? In 8086, to speedup the implementation of program, the instructions fetching and implementation of instructions are overlapped each other. This method is kno

Decimal to binary conversion, Decimal  to binary Conversion To conver...

Decimal  to binary Conversion To convert a decimal  number to binary  any one  of the followings  two methods  can be used. Methods1 : This  is very common  methods of co

Explain lithography, Explain Lithography. Lithography - This is one ...

Explain Lithography. Lithography - This is one of the processes which is carried out throughout manufacture of integrated circuits. Silica oxide (SiO 2 ) layer is thermally

The operation of colpitts oscillator, Q. Explain with the help of a circuit...

Q. Explain with the help of a circuit diagram,the operation of COLPITTS OSCILLATOR. Oscillator is a circuit used to generate a.c voltage without a.c.input signal.The energy to

Transformer, Ask questiochan #Minimum 100 words accepted# characteristics o...

Ask questiochan #Minimum 100 words accepted# characteristics of transformer

Drive operating envelopes and induction machines, Solve using data from the...

Solve using data from the DC machine data sheet, using the "hot" resistance value for all calculations. Note that the value of K on the sheet is for rated (100%) field flux. Assum

Refrigeration and airconditioning, Ask question #Minimum 100 words acceptTh...

Ask question #Minimum 100 words acceptThere are various refrigeration systems employing various methods. State any seven (7) refrigeration systems, mention the method(s) employed t

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