Representation of negative number, Electrical Engineering

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.

Posted Date: 4/4/2013 2:41:12 AM | Location : United States







Related Discussions:- Representation of negative number, Assignment Help, Ask Question on Representation of negative number, Get Answer, Expert's Help, Representation of negative number Discussions

Write discussion on Representation of negative number
Your posts are moderated
Related Questions
Q. The response v(t) of a linear system to a unit-step excitation i(t) is given by v(t) = (5 - 3e -t + 2e -2t ) u(t). Determine the transfer function H(s) = V (s)/I (s).

Simplest equivalent circuit topology using lumped elements: For each of the Smith chart traces below, sketch (at the right of each chart) the simplest equivalent circuit topol

Q. How do you differentiate between dual beam and dual trace oscilloscope? Sol. There are two separate vertical input channels A, B and these use separate attenuator and prea

Consider and obtain the values for R S , R 2 , R 1 , and R D . Apply the rule-of-thumb dc design procedure outlined in this section for a JFET with V P = 3V, I DSS = 20 mA, and a

kindly send us the formula and C program for performance improvement of distribution system using HV/LV ratio. REGARDS ANUJ AGARWALA

Hello may i know if it is possible for me to teach online on electrical maters?

Q. What is an amplifier? What are the various types of amplifiers? AMPLIFIER: A circuit that increases the amplitude of the given input signal is an amplifier. A small a.c. sig

Calculate the resistance of a 2 km length of aluminium overhead power cable if the cross-sectional area of the cable is 100 mm 2 . Take the resistivity of aluminium to be 0.03x10 -


Composition of MOSFET  In a test pattern the Photomicrograph of two metal-gate MOSFETs. Probe pads for two gates and three source or drain nodes are entitled.Generally the se