Home >Common Problem >Do instructions have to include opcodes and address codes?

Do instructions have to include opcodes and address codes?

尚
Original
2020-03-19 13:13:0412863browse

Do instructions have to include opcodes and address codes?

Computer instructions generally include operation codes and operands.

An instruction is a command given to the computer, which must include an operation code and an address code (or operand). The former indicates the type of operation completed by the instruction, and the latter indicates the location where the data participating in the operation and the operation results are stored.

In computers, operation requirements and operand addresses are represented by binary numbers, called operation codes and address codes respectively. The entire instruction is stored in the memory in the form of binary encoding.

The sequential execution of 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 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.

The above is the detailed content of Do instructions have to include opcodes and address codes?. 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