Fortune Telling Collection - Comprehensive fortune-telling - DOS command, how to calculate, computers are all kinds of transistors, how to understand DOS command?

DOS command, how to calculate, computers are all kinds of transistors, how to understand DOS command?

DOS command is actually a program or a piece of code, which contains many instructions, and each instruction contains many simple instructions that the machine can recognize. A copy instruction requires hundreds of machine instructions to complete the operation.

If you want to know these specific processes, you need to read more about them.

For example:

Computers should do addition, subtraction, multiplication and division;

12 bit code instruction code

0000000000 1 stands for addition.

10000000000 means subtraction.

0000000 10000 means multiplication.

10000010001stands for division.

8-bit code number

0000000000 means 0.

00000000 1 means1.

000000 10 means 2.

000000 1 1 stands for 3.

00000 100 means 4.

00000 10 1 stands for 5.

00000 1 10 means 6.

00000 1 1 1 means 7.

Wait, the quantity is too large. What should we do? Lengthening, similar to: 000000000001,and so on.

We want the computer to realize the multiplication of 2 * 6, which is expressed in the computer as

0000000 10000 000000 10 00000 1 10

After receiving this instruction, the computer will use registers to perform operations, use other functional instructions to return results, and so on.