Understanding the Computer's Native Tongue
A program is a set of instructions designed to direct a computer to perform specific tasks. While we can write programs in various languages, computers can only execute programs in binary form. Machine language is the computer's native tongue - the direct set of instructions that hardware recognizes and executes.
Direct binary sequences as they appear in computer memory
Equivalent representations that are easier for humans to read
Uses symbols for operations, requiring translation by assemblers
| Location | Instruction Code | Description |
|---|---|---|
| 0 | 0010 0000 0000 0100 | Load first operand |
| 1 | 0001 0000 0000 0101 | Add second operand |
| 10 | 0011 0000 0000 0110 | Store result |
| 11 | 0111 0000 0000 0001 | Halt computer |
| 100 | 0000 0000 0101 0011 | First operand |
| 101 | 1111 1111 1110 1001 | Second operand |
| 110 | 0000 0000 0000 0000 | Result storage |
| Location | Instruction | Description |
|---|---|---|
| 000 | 2004 | Load accumulator from address 004 |
| 001 | 1005 | Add memory word from address 005 to accumulator |
| 002 | 3006 | Store accumulator content to memory location 006 |
| 003 | 7001 | Halt computer |
| 004 | 0053 | First operand |
| 005 | FFE9 | Second operand (negative) |
| 006 | 0000 | Store sum here |
Hardware directly executes machine language without translation
Fundamental form directly understood by computer hardware
Hex/octal representations make it easier for programmers