Home  >  Article  >  An instruction is a command that controls the execution of a computer. It consists of what and an address code.

An instruction is a command that controls the execution of a computer. It consists of what and an address code.

青灯夜游
青灯夜游Original
2021-01-11 11:43:1618345browse

Instructions are commands that control computer execution. They consist of operation codes and address codes. Usually an instruction includes two aspects: operation code and operand (address code). The operation code determines the operation to be completed, and the operand refers to the data participating in the operation and the address of the unit where it is located.

An instruction is a command that controls the execution of a computer. It consists of what and an address code.

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

Instructions are commands that control computer execution. They consist of operation codes and address codes.

An instruction is a command given to the computer. It tells the computer what operation to do, where the data involved in this operation comes from, and where the operation results will be sent. Therefore, an instruction must include an operation code and an address code (operand).

The operation code determines the operation to be completed, and the operand refers to the data participating in the operation and the unit address where it is located.

The process of executing the program:

The sequential execution of the instructions will complete the execution of the program, so it is necessary to understand the execution process of the instructions.

The first is to fetch instructions and analyze instructions. 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.

An instruction is a command that controls the execution of a computer. It consists of what and an address code.

Related recommendations: " Programming Video"

The above is the detailed content of An instruction is a command that controls the execution of a computer. It consists of what and an address code.. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn