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

Present and future trends in power systems, Q. Present and Future Trends in...

Q. Present and Future Trends in power systems? According to the Edison Electric Institute, electricity's share of U.S. primary energy was almost 36% in 1989, and it is likely t

Determine the signal bandwidth and the amplitudes, Determine the signal ban...

Determine the signal bandwidth and the amplitudes, Computer Networking

Role of bureau of energy efficiency, Role of Bureau of Energy Efficiency ...

Role of Bureau of Energy Efficiency The role of the Bureau of Energy Efficiency is to: Ready standards and labels of appliances and equipment; Develop a list

What would the cutoff frequency, Q. The cutoff frequency of a dominant mode...

Q. The cutoff frequency of a dominant mode in an air-?lled rectangular waveguide is 3 GHz. What would the cutoff frequency be if the same wave - guide were ?lled with a lossless di

Define shunt var compensation, Define Shunt VAr Compensation? Shunt cap...

Define Shunt VAr Compensation? Shunt capacitors absorb leading VArs (i.e. they are used to supply lagging VArs) whereas reactors are used to absorbs lagging VArs. Capacitors an

Smart parking system, Design a smart park system using Iot sensors to udate...

Design a smart park system using Iot sensors to udate stautus to a server ?

Evaluate the form factor, Evaluate the form factor: For the saw tooth ...

Evaluate the form factor: For the saw tooth wave illustrated in Figure, find out the form factor. Figure: Saw Tooth Wave Solution Time period of given wave i

Define shifting and reversing – linear system, Define Shifting and Reversin...

Define Shifting and Reversing – Linear System? The signal x[n - m] is said to be time-shifted by m samples, where m is an integer. If m is positive, the shift is to the right (

Can you explain about slew rate, Q. Can you explain about Slew Rate? Sl...

Q. Can you explain about Slew Rate? Slew (or slewing) rate is a measure of how fast the output voltage can change. It is given by the maximum value of dvo/dt , which is normall

Determine a normalized frequency at 820nm, Determine a normalized frequency...

Determine a normalized frequency at 820nm for a step index fibre having 25µm core radius. Given n 1 =1.48 and n 2 =1.46.Also calculate how several modes propagate within this fibre

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