Home > Common Problem > What do computer instructions generally include?

What do computer instructions generally include?

(*-*)浩
Release: 2019-12-10 14:08:49
Original
22228 people have browsed it

What do computer instructions generally include?

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 the 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. (Recommended learning: web front-end video tutorial)

Computer instructions generally include operation codes and operands.

It is correct that computer instructions must include operation codes and address codes.

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.

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.

The total number of different instructions that a computer can execute is called the computer's instruction system. Each computer has its own specific instruction system, and its instruction content and format are different.

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, determined according to the operation code in the instruction. What should the computer do.

The second step is to execute the instruction. 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.

Related knowledge:

1. 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 the program is The working process of a computer.

2. The controller directs the machine to work through instructions. People use instructions to express their intentions and give them to the controller for execution.

The above is the detailed content of What do computer instructions generally include?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template