THE INSTRUCTION EXECUTION CYCLE.
The instruction execution cycle is included with the following steps;
1.FETCHES
2.DECODE
3.EXECUTE
4.STORE
HOW THE CPU EXECUTES PROGRAM INSTRUCTION ?
Before an instruction can be executed,program instructions and data must be placed into memory from an input device or a secondary storage device.
- The control unit "FETCHES" (gets) the instruction from the memory.
- The control unit "DECODES" (decides what it means) the instruction and gives instruction for necessary data to be moved from memory to the arithmetic/logic unit.
- The arithmetic/logic unit "EXECUTES" arithmetic and logic instruction.That is, the ALU is given control and performs the actual operation on the data.
- The result of these operation is "STORED" in memory or in a temporary location called a register.
0 comments:
Post a Comment