An instruction is one step of a program as the hardware sees it: a binary word that tells the CPU to do one simple thing. Typical jobs:
- move data between memory and registers (LOAD, STORE);
- do arithmetic or logic (ADD, SUB);
- change which instruction runs next (JMP, JZ);
- stop (HALT).
Each instruction is split into fields by the instruction format. The opcode says what to do; other fields say which data or address to use. In Tiny8, 3E is ADD E: opcode 3 (ADD), address E.
In a stored program computer, instructions live in memory alongside data. A word becomes an instruction only when the program counter reaches it and the CPU fetches it. Then the CPU runs the fetch decode execute cycle on it.
The full list of instructions a CPU understands is its instruction set.