3. Computing systems

Any information (text, music, images, etc.) for its processing by the computer must be converted into a numeric form.

The calculation system defines the rules for writing numbers and executing arithmetic operations over them (+ - * /).

In computer science, three basic systems of calculation are used - binary, octal and hexadecimal.

Any information in the PC appears in the binary code. In particular, machine commands are represented by two characters 0 and 1 ("yes" and "no", "is" and "no").

These codes have two main fields: the operation field - the binary operation code and field address - the number of data cells over which this operation is performed and where to send the result of the operation.

The presentation of data and programs in binary form is conditioned by the principle of PC operation. It's almost instantaneous to determine if there is a voltage in a given cell (1) or not (0) on RAM; a dipole is "magnetized" or not on the HDD; the reflection of the laser beam is or not on the CD.

The octal computing system uses numbers from 0 to 7.

To write data in a PC memory, a hexadecimal encoding system is used, in which, except for numbers from 0 to 9, letters of the Latin alphabet are used: A = 10, B = 11, C = 12, D = 13 , E = 14, F = 15.

Between the decimal, binary and hexadecimal computing systems there is a unique match:

Decimal

0

1

2

3 ...

8

9

10

... 255

Binary

0

1

10

11 ...

1000

1001

1010

... 11111111

Hexadecimal

0h

1h

2h

3h

Ah

Bh

Ch

 

Example 1. Write the numbers 24 (10) and 16 (10) in the binary code. Make them and translate the result into a decimal number.

24 | 2

24 12

0

12 | 2

12 6

0

6 | 2

6 3

0

3 | 2

2 1

1

24 (10) = 11000

Adding two binary numbers:

00011000

00010000

00101000

Transmission from binary system to decimal:

7 6 5 4 3 2 1 0

00101000 (2) = 0 × 2 0 + 0 × 2 1 + 0 × 2 2 + 0 × 2 3 + 0 × 2 4 + 0 × 2 5 = 8 + 32 = 40

Character encoding

To process the text information on a PC, each its symbol is encoded by some number. The correspondence between a set of letters and a number is called the character encoding. The character encoding table with 8-bit numbers is called ASCII (American Standard Coding for Information Interchange). The first part of the table (codes 0-127) includes signs, Arabic numerals, Latin alphabet, and is generally accepted by the whole world. In the second half of the table (codes 128-255), there is a national alphabet, as well as special characters.

Part of the code page 866 for MS-DOS

..

48 - 0

65 - A

97 - a

128 - A

160 - a

251 -

24 -

49 - 1

66 - B

98 - b

129 - B.

161 - b

252 -

25 - ¯

50 - 2

67 - C

99 - c

130 - B

162 - in

255 -

Example. Record the sequence of letters "ABC" in the binary code.

A

B

C

65

66

67

01000001

01000010

01000011

Units of measurement of information

Bit (binary digit) - a binary digit that accepts values 0 or 1, is the smallest unit of measurement of information.

A bit can also be represented as a cell (memory cell).

Binary elements that are grouped are called memory registers. This indicates the length of the register - the number of binary elements in the group.

Computer commands work not with separate bits, but with their registers.

Byte (byte) - eight consecutive bits, is the basic unit of measurement of computer information.

In eight binary discharges, there are 2 8 = 256 integers (from 0 to 255), which is sufficient for the 8-bit designation of each large, small letter of the English and national alphabets, numbers, signs, etc.

Other units of information are also used, for example, the word 16 bits (2 bytes), the double word is 32 bits (4 bytes) and 64 bits (8 bytes), etc.

To measure large volumes of information, the following units of measurement (sets of bit) are used:

1 kilobyte (K) = 1024 = 2 10 bytes (B) = 10 3 B

1 megabytes (M) = 1048576 = 2 20 B = 2 10 KB = 10 6 B

1 Gigabyte (G) = 1073741824 = 2 30 B = 2 20 KB = 2 10 MB = 10 9 B

1 terabyte (T) = 2 40 B = 2 30 KB = 2 20 MB = 10 12 B

If one letter in ASCII code is 1 Byte, then the encyclopedia approximates approximately 120 MB, the newspaper 150 KB, person in 70 years of life says 10 GB.

Accessibility

Font Face Font Face

Font Size Font Size

1

Text Colour Text Colour

Background Colour Background Colour

Font Kerning Font Kerning

Image Visibility Image Visibility

Letter Spacing Letter Spacing

0

Line Height Line Height

1.2

Link Highlight Link Highlight