Low Level Machine Code: Translation ProgramsThe processor's own language made up of binary numbers (0's and 1's only)
If computers can only understand a language of 0's and 1's then there is a problem of
Some examples of ASCII code |
![]() |
|
Character |
Binary Code |
|
Space |
0010 0000 |
|
! |
0010 0001 |
|
A |
0100 0001 |
|
Z |
0101 1010 |
|
Representing Numbers
Like text, numbers are represented in Binary Code. Computers solve the problem of creating numbers larger than 1 by counting using the Binary System. - we count using the Decimal System.
The advantage of the Binary Counting System, is that it goes up in two's, rather than 10's, and this matches the two states of 1 and 0. Consider the table below where place values go up in two's.
| Place values | 128 |
64 |
32 |
16 |
8 |
4 |
2 |
1 |
|
| Bits | 1 |
0 |
1 |
= 5 |
|||||
| Here the bits indicate that there is (1* 4) + (0*2 ) + (1 * 1). Adding all these together results in 5. From using other bits to represent place holder values other numbers can be created in binary code. For example | |||||||||
| Example 1 | 0 |
1 |
0 |
0 |
1 |
1 |
0 |
1 |
= 77 |
| Example 2 | 0 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
= 31 |
| Example 3 | 0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
= 0 |
| What is the largest number that be created with 8 bits i.e coded by a single Byte (8 bits)? | |||||||||
| In order of size | ||
| Smallest | bit | 1 or 0 |
| byte | 8 Bits e.g. 0101 1010 which represents the letter Z | |
| Kilobyte (Kb) | 1024 Bytes | |
| Megabyte (Mb) | 1024 Kilobytes | |
| Gigabyte (Gb) | 1024 Megabytes | |
| Largest | Terabyte (Tb) | Guess how many Gigabytes? |
| Main memory and Backing Storage of computers is measured in Megabytes (Mb) or nowadays Gigabytes. And computers with backing storage measured in Terabytes (Tb) are becoming available. | ||
Graphics or pictures on computer monitors (screens) are represented by PIXELS (picture elements) Each pixel may be' on' (represented in binary by 1) or 'off' (represented in binary by 0).
Because each pixel in the graphic is represented by a bit (1 or 0) these pictures are called bit mapped graphics.
The more pixels there are, the better the quality of the picture.
Calculating the storage requirements of bit mapped graphics
| IPO Cycle | |
| Data is processed in sequence. | |
|
|
| Processor Structure | |
| Processor's or the brain of the computer is split into three parts. | |
|
|
What you should be able to do!