Next: Representation of information in
Up: The Computer
Previous: The system bus
All information inside the computer and on external storage devices is
represented in a form related to the Binary number system.
Binary is a number system which uses the base 2 instead of the base 10
decimal system that is used in normal life. In the decimal system a
positional number system is used which allows all numbers to be
expressed using only the digits 0-9. Successive digits from the
right represent the number of the corresponding power of 10. Thus 123
in decimal is
Modern computers organise information into small units called bytes which hold eight bits, each bit representing a 0 or a 1. Each byte may hold a single character of text or a small integer. Larger numbers, computer instructions and character strings occupy several bytes.
The main memory can be thought of as a series of bytes numbered from 0, 1, 2, 3, ...upwards, each byte containing a pattern of eight bits which can be accessed by the CPU when it supplies the number, or Address, of the byte required. For example consider the section of memory illustrated below:
Address | Contents |
3168 | 10110111 |
3167 | 01000111 |
3166 | 01010101 |
G
in the ASCII character code that
is used almost universally now or it could represent the decimal
number 71.
It is important to keep a clear distinction in your mind of the difference between the address of a memory location and the contents of that memory location.