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

Compute the force, Q. Consider a current element I 1 d ¯ l 1 = 10 dz ¯ az...

Q. Consider a current element I 1 d ¯ l 1 = 10 dz ¯ az kA located at (0,0,1) and another I 2 d ¯ l 2 = 5dx ¯ ax kA located at (0,1,0). Compute d ¯ F 21 and d ¯ F 12 experienc

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

Determine the thevenin resistance, Q. Determine the Thevenin resistance vie...

Q. Determine the Thevenin resistance viewed from terminals A-B of the circuit of Figure by setting independent sources to be zero and applying a test voltage at terminals A-B.

What is txd, What is TXD? TXD- Transmitter Data Output This output p...

What is TXD? TXD- Transmitter Data Output This output pin carries serial stream of the transmitted data bits by with other information like start bit, stop bits and priority

power sector economics & planning, 1.  The rejection criteria of an invest...

1.  The rejection criteria of an investment project, as evaluated from the NPV method is that NPV should be equal to zero. 2.  Technical feasibility is the only criteria to dete

What do you mean by load factor, Q. What do you mean by Load factor? Th...

Q. What do you mean by Load factor? The two components of electric service are demand and energy. Demand is the maximum level of real power which the electric utility must supp

What is cascade, An arrangement of Windows so every window is neatly stacke...

An arrangement of Windows so every window is neatly stacked with only the title bar of every window is showing.

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

Write a report on various types of diodes, a. write a report (at least  2 p...

a. write a report (at least  2 pages ) on various types of diodes( Show and explain  the theory, symbol, circuit, characteristics, data sheets and applications circuits using the d

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