-
The computer's instruction execution process is divided into the following four steps:
1. Understand the execution process of instructions.
In the order specified by the program, from the internal memory.
Removes the command that is currently executed.
2. Analyze the instructions taken out.
The instructions are sent to the instruction register of the controller, and the instructions taken are analyzed, that is, what operation should be performed by the computer according to the opcode in the instructions.
3. Execute instructions.
According to the results of instruction analysis, the controller sends out a series of control potentials required to complete the operation, so as to direct the relevant parts of the computer to complete the operation.
4. Prepare for the next instruction.
The execution of computer instructions also includes preparing for the next instruction.
Extended Materials. Regarding the use of computer instructions, the following questions should be noted:
1. Tag names, attribute names, and attribute values are case-sensitive.
2. The attribute value must use a pair of single quotation marks.
or double quotation marks.
3. There can be no space between the equal sign (=) and the value.
4. Each computer has its own specific instruction system, and its instruction content and format are different.
-
Take an instruction, analyze an instruction, execute an instruction, take down an instruction.
The execution process of instructions: the first step is to take instructions and analyze instructions. According to the order specified by the program, take out the currently executed instruction from the internal memory and send it to the instruction register of the controller, analyze the taken instruction, that is, determine what operation the computer should perform according to the operation code in the instruction.
The second is to execute the instructions. According to the results of the instruction analysis, the controller sends out a series of control potentials required to complete the operation, so as to direct the relevant parts of the computer to complete the operation, and at the same time, prepare for the next command.
-
Computer instructions are instructions and commands that command the work of the machine, a program is a series of instructions arranged in a certain order, and the process of executing the program is the working process of the computer. The controller directs the machine to work by commands, and people express their intentions with instructions and hand them over to the controller to execute.
In a computer, both the operation requirement and the operand address are represented by binary digits, called opcodes and address codes, respectively, and the entire instruction is stored in memory in the form of binary encoding.
The type and number of directives are not detailed here, depending on the specific model, please refer to the specific machine manual.
-
Instructions that can be executed directly by a computer include opcodes and operands.
The instructions in the instruction system, in the computer memory, are stored in the form of binary encoding, which is called machine code, or machine instructions. A program that uses instruction mnemonics and various symbols to represent addresses or data, etc., and in a prescribed format is called an assembly language program. These symbols, which represent instructions, addresses, data, etc., as well as related provisions, are the tools used by computers to carry out their thoughts, i.e., computer assembly language.
The assembly language source program is syntax checked and translated by the assembler to form a binary ** representation of the destination code file. If there is a syntax error in the source program, the assembler will indicate the type of error and the statement where the error occurred so that the user can re-modify it to form a new source program.
Computers, commonly known as computers, are modern intelligent electronic devices that can run according to programs and process massive amounts of data automatically and at high speed. It can not only perform numerical calculations, but also logical calculations, and also has the function of storage memory.
Computers can be divided into five categories: supercomputers, industrial control computers, network computers, personal computers, and embedded computers. It is mainly composed of hardware system and software system.
-
An instruction refers to a command for a computer to perform a certain operation, which consists of two parts: an opcode and an address code.
The process by which the computer executes the instructions:
1.Take the instruction: according to the order specified by the program, take out the currently executed instruction from the internal memory;
2.Analyze instructions: send the currently executed instructions to the instruction register of the controller, analyze the instructions taken, that is, determine what operation the computer should perform according to the opcode in the instructions;
3.Execution instruction: According to the instruction analysis result, the controller sends out a series of control potentials required to complete the operation, so as to command the relevant parts of the computer to complete the operation;
-
The language that computers can directly recognize and execute is called "machine language".
Machine language is a programming language or instruction that can be directly recognized by the machine, without translation, and each opcode has a corresponding circuit inside the computer to complete it, or refers to a programming language or instruction that can be directly understood and accepted by the machine without translation. Machine language uses absolute addresses and absolute opcodes. Different computers have their own machine language, the instruction system.
From a usage perspective, machine language is the lowest level of language.
An instruction is a statement in machine language, it is a set of meaningful binary **, the basic format of the instruction is such as the opcode field and the address code field, where the opcode indicates the nature and function of the instruction, and the address code gives the operand or the address of the operand.
To write a program in machine language, the programmer must first memorize all the instructions and meanings of the computer he is using.
When programming by hand, the programmer has to handle the storage allocation, input and output of each instruction and each piece of data, and also has to remember the state of the work unit used at each step of the programming process. It's a lot of work. It often takes tens or hundreds of times longer to write a program than it actually runs.
Moreover, the programmed programs are all 0 and 1 instructions**, which are not intuitive and prone to errors. With the exception of computer manufacturers, the vast majority of programmers no longer learn machine languages.
-
In the computer exam, before classifying and summarizing, you must first take the instruction - analyze the instruction - execute the instruction Simply put, the CPU CPU parses and executes the binary instructions of the computer. Obtaining instructions, analyzing instructions, and executing instructions must be sorted before they can be classified and summarized.
-
It is divided into two steps, that is, reading the instruction and executing the instruction.
System software and application software
System software refers to the system that controls and coordinates computers and external devices, supports the development and operation of application software, and is a collection of various programs without user intervention, and its main function is to schedule, monitor and maintain computer systems; Responsible for managing the various independent pieces of hardware in a computer system so that they can work in harmony. System software enables computer users and other software to treat the computer as a whole, regardless of how each piece of underlying hardware works. >>>More
The main functions of computer networks include data communication, resource sharing, centralized management, enabling distributed processing, and load balancing. The details are as follows: >>>More
There are several ways to classify computers.
According to the number of bits of microprocessor, it can be divided into: 1 bit machine, 4 bit machine, 8 bit machine, 1 6 bit machine, 3 2 bit machine and 6 4 bit machine, etc.; >>>More
The development of computer networks can be divided into several stages What are the characteristics of each stageAnswer: The development of computer networks can be divided into the following four stages. >>>More
Software refers to the sum of all programs and data compiled for the operation, maintenance, management, and application of computers. Software is divided into system software and application software. >>>More