Home > Common Problem > Does a statement in a computer consist of an opcode and an operand?

Does a statement in a computer consist of an opcode and an operand?

青灯夜游
Release: 2020-09-08 14:35:00
Original
6933 people have browsed it

Does a statement in a computer consist of an opcode and an operand?

Computer instructions (statements) 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.

An instruction is a statement in machine language. It is a set of meaningful binary codes. The basic format of the instruction is such as: operation code field and address code field. The opcode specifies the operation nature and function of the instruction, and the address code gives the operand or the address of the operand.

Usually an instruction includes two aspects: operation code and operand. The operation code determines the operation to be completed. 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.

For more related knowledge, please visit: PHP Chinese website!

The above is the detailed content of Does a statement in a computer consist of an opcode and an operand?. 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