Home >Common Problem >What does a computer instruction consist of?
Computer instructions consist of opcodes and operands. Computer instructions are instructions and commands that direct the work of the machine, and the controller directs the work of the machine by instructions. In computers, opcodes and operands are represented by binary numbers.
#Computer instructions usually consist of opcodes and operands.
(Recommended tutorial: windows)
Related introduction:
Computer instructions are instructions and commands that direct the work of the machine, and the program is a series of certain instructions. The sequence of instructions and 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.
Usually an instruction includes two aspects: operation code and 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.
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 above is the detailed content of What does a computer instruction consist of?. For more information, please follow other related articles on the PHP Chinese website!