Complements Essay

While the free essays can give you inspiration for writing, they cannot be used 'as is' because they will not meet your assignment's requirements. If you are in a time crunch, then you need a custom written term paper on your subject (complements)
Here you can hire an independent writer/researcher to custom write you an authentic essay to your specifications that will pass any plagiarism test (e.g. Turnitin). Waste no more time!

COMPLEMENTS

INTRODUCTION:

Basic binary digits are described as UNSIGNED values. This is because if you

look at the string of bits (zeros and ones) there is no indicator whether or

not this value is positive or negative. You must use an additional symbol "+"

or "-" to indicate the sign of the number. There are some types of number

systems where you can determine the sign of number without using an addition

symbol. You can tell whether it is positive or negative by looking at the

bits. Such representations are referred as SIGNED representations because you

can determine the sign of the number from the number itself.

In signed representations you the MOST SIGNIFICANT BIT (MSB) indicates the sign

of the number. The MSB is the left most bit. If the MSB is equal to 0 then the

number is positive. If the MSB is equal to 1 then the number is negative.

e.g. 001111101 is positive

^

|

The MSB is equal to zero

e.g. 101101010 is negative

^

|

The MSB is equal to one

At this point you might ask yourself why bother with signed representations -

we perform decimal based subtractions in every day life using base ten

unsigned representations and we're all happy and well adjusted people. The

reason why it's important to learn about signed representations is because

when the computer tries to subtract one number Y from another number X, it

doesn't do so in the same way that we do: i.e X - Y

Instead it uses a technique known as negating and adding:

i.e. X + (-Y) which is still equal to X - Y

CONVERSIONS (UNSIGNED BINARY TO SIGNED VALUES)

This is summary of what you must do to convert an unsigned binary value to a

complemented value.

1's complement 2's complement

Binary value >= 0 No change No change

Binary value < 0 Swap the bits Swap the bits and add

one to the result.

Carry out? Add it back in Ignore it

Swapping the bits means we substitue 1's for 0's and 0's for 1's.

DOING SUBTRACTIONS VIA COMPLEMENTS (ala Negate and Add)

How do we do this with the negate and add? First convert these numbers to

binary:

Base 10 Base 2 (must be signed!)

eg 4 0100

-6 -0110*

= -2

*I added one extra zero to the left hand...

The rest of the paper is available free of charge to our registered users. The registration process just couldn't be easier. Log in or register now. It is all free!
You should cite this paper as follows:

MLA Style
. EssayMania.com. Retrieved on 22 May, 2012 from
    <http://essaymania.com/116974/complements>

More College Papers

Coming Of The Biotech Age essay
There are a number of people who would consider the technological and computer revolutions to be the greatest achievements of our time. But, will the near future for computers have continued impact on society? Society has marvelled at the current functions of computers from managing business account

Cloning 5 essay
Cloning Is cloning ethical? the majority of the world would say no but the medical research possibilities associated with it are endless. In 1997 when Dolly the lamb was born we began to think, wow if it s possible toclone an animal why not a human in the future? It soon became known that it

Arpanet essay
The USSR launches Sputnik, the first artificial earth satellite. In the late 1960 s the U.S. military was desperately afraid of a nuclear attack from the Soviet Union. The United States formed the Advanced Research Projects Agency (ARPA) within the Department of Defense to establish a bombproof netw