The completion of an instruction generally has two stages: instruction fetching and instruction execution. Execution process: First, according to the order specified by the program, the currently executed instructions are fetched from the internal memory and sent to the instruction register of the controller to analyze the fetched instructions; then the instructions are executed. According to the instruction analysis results, the controller Sends out a series of control potentials required to complete the operation.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
The completion of an instruction generally has two stages: instruction fetching and instruction execution.
Related recommendations: "Programming Learning"
Computer instructions are instructions and commands that direct the work of the machine. A program is a series of instructions arranged in a certain order. The process of executing a program is the working process of the computer.
The controller relies on instructions to direct the machine to work. People use instructions to express their intentions and give them to the controller for execution.
Instruction execution process
The first step is to fetch and analyze the instruction. According to the order specified by the program, the currently executed instructions are fetched from the internal memory and sent to the instruction register of the controller. The fetched instructions are analyzed, that is, what operations the computer should perform are determined based on the operation codes in the instructions.
The second is to execute the instructions. According to the instruction analysis results, the controller issues a series of control potentials required to complete the operation in order to direct the relevant components of the computer to complete the operation. At the same time, it is also ready to fetch an instruction.
If you want to read more related articles, please visitPHP Chinese website! !
The above is the detailed content of The completion of an instruction generally has two stages: instruction fetch and what. For more information, please follow other related articles on the PHP Chinese website!