Candidates should be able to:
- explain how instructions are coded as bit patterns
- explain how the computer distinguishes between instructions and data.
How are program instructions coded?
Machine code instructions are binary numbers and are coded as bit patterns, for example, a 16 bit machine code instruction could be coded as 001010101101001011.
In machine code the instructions are usually made up of 2 parts, an operator (op code) and an operand (typically a memory address). The CPU decodes the operator (for example, the bit pattern . . .
This content is restricted to subscribers