# computer system

Extracts from this document...

Introduction

1. Twos compliment Two's complement is the most popular method of signifying negative integers in computer science. It is also an operation of negation (converting positive to negative numbers or vice versa) in computers which represent negative numbers using two's complement. Its use is ubiquitous today because it doesn't require the addition and subtraction circuitry to examine the signs of the operands to determine whether to add or subtract, making it both simpler to implement and capable of easily handling higher precision arithmetic. As well, 0 has only a single representation, obviating the subtleties associated with negative zero. In the two's complement representation, the most significant bit of a signed binary value indicates the sign. If the sign bit is zero, the value is non-negative binary number. If the most significant (leftmost) bit is 1, the value is negative: the bits contain a two's complement version of the value. To obtain the value of a negative number, all the bits are inverted then 1 is added to the result. If all bits are one the value is negative one; if the sign bit is on but the rest of the bits are off the value is the most-negative number. The most negative number cannot be represented as a positive number with the same number of bits. A signed 8-bit binary numeral can represent every integer in the range -128 to +127. ...read more.

Middle

Bits 48-57 represent the numeric digits. Bits 65-90 are the capital letters, while bits 97-122 are the lower-case letters. The rest of the bits are symbols of punctuation, mathematical symbols, and other symbols such as the pipe and tilde. ASCII began in theory as a simpler character set, using six rather than seven bits. Ultimately it was decided that the addition of lower-case letters, punctuation, and control characters would greatly enhance its usefulness. Not long after its adoption, much discussion arose about possible replacements and adaptations of ASCII to incorporate non-English and even non-Roman characters. As early as 1972 an ISO standard (646) was created in an attempt to allow a greater range of characters. A number of problems existed with ISO-646, however, leaving it by the wayside. The current leading contender for replacing ASCII is the Unicode character set. This standard allows for essentially unlimited characters to be mapped by using collections of bytes to represent a character, rather than a single byte. The first byte of all Unicode standards remains dedicated to the ASCII character set, however, to preserve backward compatibility. ASCII is now most often heard in the phrase ASCII art. This describes the use of the basic character set to create visual approximations of images 3c Bit Masks A bit mask makes use of the fact that binary numbers are made up of 1's and 0's, each digit in a binary number being equivalent to one bit. ...read more.

Conclusion

point. For example, a fixed-point number with 4 digits after the decimal point could be used to store numbers such as 1.3467, 281243.3234 and 0.1000, but would round 1.0301789 to 1.0302 and 0.0000654 to 0.0001. Fixed-point can exactly represent decimal fractions while still employing the base 2 arithmetic efficient in most of today's computers. Most floating point representations in computers use base 2 values, which cannot exactly represent most fractions that are easily represented in base 10. For example, one-tenth (.1) and one-hundredth (.01) can be represented only approximately by base-2 floating point representations, while they can be represented exactly in fixed-point representations - one simply stores the data values multiplied by the appropriate power of 10. As long as the numeric value uses only the number of digits specified after the decimal point, fixed-point values can exactly represent all values up to its maximum value (determined by the number of bits in its representation). This is in contrast to floating-point representations, which include an automatically-managed exponent but cannot represent as many digits accurately (given the same number of bits in its representation). Advantage of floating point notation over fixed point notation Very few computer languages include built-in support for fixed point values, because for most applications, floating-point representations are fast enough and accurate enough. Floating-point representations are more flexible than fixed-point representations, because they can handle a wider dynamic range. Floating-point representations are also slightly easier to use, because they do not require programmers to specify the number of digits after the decimal point. 1 D:\unit2\assessment2.doc\Manmeet Kaur\5/9/2007 ...read more.

This student written piece of work is one of many that can be found in our GCSE Accounting & Finance section.

## Found what you're looking for?

- Start learning 29% faster today
- 150,000+ documents available
- Just £6.99 a month