CPU executes the process of machine code

xiaoxiao2021-03-05  25

CPU has its own command, you need to find an operand, that is, memory, also means that the variable, the access process has assignment operators, and calculates

The process has an expression, and the expression also refers to - * /% & Take the address, which also refers to access operation. Access address, generally by the CPU to do this work in the CPU and the pointer register and instruction register to do this, so we are not very good to understand this.

Knowledge, is to take instructions and substances, calculators and logical accessories in the CPU, and how to work this process, which is good

Understand, address bus, data bus, and mutual transfer, to calculate CPU. Come back the results. Write back memory, register status, table

The result of the data operation is the display status, and then the memory is then transferred back by the CPU, saves the result. Continue operation. Until the end.

The CPU finds the byte in the memory, by the address, display, and then read the contents of the content, the content of the instruction, the contents of the CPU know, the contents of the data.

, The CPU is placed in a position, then, calculates, write back memory, where there is a register, and the command register and

The content of the data register. The contents of the stack pointer register.

The problem to solve the algorithm. How to solve the problem of algorithms, first solve the representation of the algorithm: This is very important because of our

The space and the space in the computer are different, we are four-dimensional space, and the computer is a few dimensional space,

The computer is located is a few dimensional space, 2, mathematics, which can represent that the matrix can represent a few dimensional space, so we design the algorithm.

Time is to use the variables, structures, classes of the memory, and the concepts, and concepts, and the representation of the algorithm.

The problem should be thinking about it.

The representation of the ideological algorithm is to look at the code, which has the problem of algorithm. See how others say how to solve the small technology

, In the future, it is very useful to compose yourself, don't look patient.

Programs written in the program, MOV AX, 1 Add BX, AX CPU still go to memory, but when reading, it will not be used.

There is a reading in the memory. It can be taken directly in the register. If the sentence means that the instruction is to take the instruction, it is a matter, and the data is one thing.

To separate. There is data in the instruction, but is the address of the data. If it is not a register label, you need to take data operation.

Work. Since the CPU is separated from the instructions and operations, it is generally not introduced, so thin, from the code can't see it, this is

Winning, in the code, just simplify the process of CPU to take instructions and execute instructions, and people will be easy to see, but it is not very understanding.

. And it is easy to give people awareness that instructions are in the CPU, existed, and in the CPU, in fact, there is storage and within memory

Store instructions and storage data. When the CPU is executed, it is also taken from the memory, sometimes the data is taken.

After understanding, look at the code, will be omitted, the CPU reading the instruction, directly thinks. Execute. These operations. Only process and

Data, this is an algorithm. There is also a problem representation.

转载请注明原文地址:https://www.9cbs.com/read-37241.html

New Post(0)