Home > Common Problem > What were the main uses of the first generation of computers?

What were the main uses of the first generation of computers?

藏色散人
Release: 2020-12-01 15:21:03
Original
13811 people have browsed it

The first generation of computers mainly used machine language; machine language is an instruction set system. This instruction set, called machine code, is data that the computer's CPU can directly interpret.

What were the main uses of the first generation of computers?

#The first generation of computers primarily used machine language.

Machine language (machine language) is an instruction set system. This instruction set, called machine code, is data that can be directly interpreted by the computer's CPU.

Machine language has the following characteristics,

1. Machine language is closely related to computer hardware structure

Different computer hardware structures have different machine languages. In the computer hardware structure with the CPU as the core, different CPUs have different machine languages. Machine language and computer hardware structure closely related.

2. Binary number representation

In machine language, the instruction operation code, the address of the storage unit where the operand is stored, the operand, etc. are all represented by binary numbers. The CPU will access the content read from the memory with the value of the program counter as the address. As an instruction, take the operand address given in the instruction. Or use the value of address register B as the address to access the memory and read the content as the operand. The CPU is responsible for distinguishing instructions and operands. The binary numbers representing instructions and operands themselves cannot distinguish between the two.

3. When designing a program, it is necessary to synchronously arrange the storage locations of instructions and operands in the memory

Since the operation instruction needs to specify the address of the storage unit where another operand is stored, and the control instruction needs to specify the non-sequential execution of instructions, The address of the storage unit that stores the first instruction in another program or loop body. Therefore, the process of designing a program is also the process of arranging the storage locations of instructions and operands in the memory.

4. Each instruction can only complete a simple computing function

Each instruction in machine language can only complete a simple computing function. It is difficult to write a program in machine language that completes a complex calculation process. A machine language program that completes a calculation process that only contains four arithmetic expressions is relatively complex. You can try to use the model machine machine instructions to write a machine language program that completes the expression: 7*8 (21-1 7)*5-(7 21)÷6 operation process.

The above is the detailed content of What were the main uses of the first generation of computers?. 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