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

Moving coil transducers, Note transducers  convert a physical quantity from...

Note transducers  convert a physical quantity from one  form to another.  The case below illustrates a typical moving coil meter   that   converts   a   current into a mechanical a

Rectifier, wave form of half wave rectifier with rl load

wave form of half wave rectifier with rl load

Sketch the frequency response, Q. For the circuits shown in Figure, sketch ...

Q. For the circuits shown in Figure, sketch the frequency response (magnitude and phase) of ¯V out / ¯V in .

Determine the node voltage by using kcl, Determine the node voltage by usin...

Determine the node voltage by using KCL: Determine the node voltage V and then current flowing through each element by using KCL. Solution Apply KCL at the node whose

Second Order Precesses, A second-order process with one pole at the origin ...

A second-order process with one pole at the origin has the transfer function 3/(s(2s + 1)) Find the output as a function of time, for a unit step input change. Sketch the expected

Determine the expected voltage levels at the output, The subsequent voltage...

The subsequent voltage-source multiplying DAC is to be utilized to convert the digital data stream "11" and "01" to an analog signal.  It has 2-bit inputs and hence is capable of c

What are the disadvantages of using robots, What are the Disadvantages of u...

What are the Disadvantages of using robots -  They can find it difficult to deal with 'unusual' circumstances for example a door is missing from a car waiting on the paint spra

The octal butters 74ls244, The Octal Butters 74LS244 It has  two group ...

The Octal Butters 74LS244 It has  two group  of four  buffer with  no inverted tri state  output ,  controlled by  two active  low  enable lines  (1G and 2G)  as shown in figur

Find the decibels of improvement in signal-to-noise ratio, If a compressor ...

If a compressor in a system can change a message crest factor from 3.2 to 2, while maintaining its peak amplitude constant, find the decibels of improvement in signal-to-noise rati

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