Stored program | ||||||||||||
Stored program concept | ||||||||||||
Instructions and data are stored in the same memory | ||||||||||||
Instructions are simply another kind of data | ||||||||||||
Instructions are executed sequentially unless branch elsewhere or stop | ||||||||||||
Fetch-execute cycle | ||||||||||||
- Instruction fetch | ||||||||||||
Get the next instruction from memory | ||||||||||||
- Decode | ||||||||||||
Figure out what operation to perform on which operands | ||||||||||||
- Operand fetch | ||||||||||||
Get the operand values | ||||||||||||
- Execute | ||||||||||||
Perform the operation | ||||||||||||
- Store result | ||||||||||||
Repeat until done | ||||||||||||