Fortune Telling Collection - Fortune-telling birth date - What is an instruction?

What is an instruction?

Instruction. A code that specifies an electronic computer to implement some control or operation.

An instruction including an operation function and an operation object is a command instructing a computer to perform an operation, which consists of a string of binary digits.

An instruction usually consists of two parts: operation code+address code. Opcode: indicates the type or nature of the operation to be completed by the instruction, such as fetching data, adding data or outputting data. Address code: indicates the content of the operation object or the address of the storage unit.

Instruction execution program:

The sequential execution of instructions will complete the execution of the program, so it is necessary to understand the execution process of instructions. The first is to obtain instructions and analyze instructions. According to the prescribed sequence program, the currently executed instruction, instruction register and controller are taken out from the memory, and the instruction is analyzed, that is, the operation of the computer is determined according to the operation code of the instruction.

The second is to execute instructions. According to the results of command analysis, the controller sends out a series of control potentials needed to complete the operation, so as to command the relevant parts of the computer to complete the operation and prepare for the next command.