Home >Common Problem >What is the main reason why computers can automatically work according to people's will?
Mainly uses stored program control. The instruction sequence and data that direct the computer to operate are stored in the internal memory in advance; during operation, the controller fetches the instructions stored in the internal memory in address order, then analyzes the instructions and executes the function of the instructions. When a transfer instruction is encountered, Then transfer to the transfer address, and then access instructions (program control) in address order.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
The reason why computers can automatically work according to people's will is mainly due to the use of stored program control.
Stored program control refers to stored program and program control. The program is input into the computer and stored in the internal memory (storage principle). When running, the controller presses the address The instructions stored in the internal memory are sequentially fetched (instructions are accessed in address order), then the instructions are analyzed, and the function of the instruction is executed. When a transfer instruction is encountered, the transfer address is transferred, and the instructions are accessed in address order (program control).
Working principle
First, the program and data are sent into the memory through the input and output devices. General memory is divided into many [2] storage units, each storage unit has an address number, so that programs and data are stored in a certain order, and the memory is also divided into several areas, such as a dedicated program storage area. and a data area dedicated to storing data. Secondly, to execute the program, you must start from the first instruction and execute it one by one.
Under normal circumstances, the addresses are executed in order from small to large. When a conditional transfer instruction is encountered, the order of execution is changed. Every time an instruction is executed, it must go through three steps: the first step is to send the instruction from the memory to the decoder, which is called an instruction fetch; the second step is to decompose the instruction into opcodes and operands to generate Corresponding various control signals are sent to various electrical components; in the third step, corresponding operations are performed. This process is controlled by electronic circuits to achieve automatic and continuous work. When running, the controller fetches the instructions stored in the internal memory in address order (access instructions in address order), then analyzes the instructions and executes the function of the instructions. When a transfer instruction is encountered, it transfers to the transfer address, and then in address order access instructions.
For more related knowledge, please visit the FAQ column!
The above is the detailed content of What is the main reason why computers can automatically work according to people's will?. For more information, please follow other related articles on the PHP Chinese website!