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

Energy stored in the capacitor when it is fully charged, An 12µF capacitor ...

An 12µF capacitor is connected in series to a 0.5M? resistor across the dc voltage supply of 240V. verify: (a)  Time constant (b)  Initial charging current (c)  Time fo

Find the charge flowing and number of electron, Q. A current i(t) = 20 cos(...

Q. A current i(t) = 20 cos(2π × 60)t A flows through a wire. Find the charge flowing, and the number of electrons per second that are passing some point in the wire.

#need digital related, Is there any electronics related papers like digital...

Is there any electronics related papers like digital for free download

Digital ttl circuit, Execution of Digital Logic Circuits A safety circ...

Execution of Digital Logic Circuits A safety circuit is employed on a lathe to prevent the motor turning if it is not safe to operate. A series of 2 switches are used to check

Gaussian derivatives, Gaussian derivatives Generate Gaussian kernels f...

Gaussian derivatives Generate Gaussian kernels for a given scale "sigma", and display the kernel. The size of the kernel should be floor(3*sigm)+1; (i) Write an m-file "

Linear and digital ics, write down the application of shift register and ex...

write down the application of shift register and explain it.

Explain the fixed bias circuit, Q. Explain the fixed bias circuit?     ...

Q. Explain the fixed bias circuit?           The Fig refers to the common emitter collector characteristics and the ac and dc load lines.The Fig shows the points Q 1 and Q 2

What do you understand by solid modeling, What do you understand by solid m...

What do you understand by solid modeling and wireframe modeling in CAD systems? Explain and compare the both modellings. Describe the following 1. Boundary representation 2.

Develop a block diagram of an asynchronous decade counter, Q. Counting to m...

Q. Counting to moduli other than 2 is a frequent requirement, the most common being to count through the binary-coded decimal (BCD) 8421 sequence. All that is required is a four-st

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