Home  >  Article  >  What assembly language instructions are used to replace binary

What assembly language instructions are used to replace binary

青灯夜游
青灯夜游Original
2021-11-08 13:42:543119browse

Assembly language instructions use "mnemonics" to replace binary. Mnemonics are symbols that are easy for people to remember and can describe instruction functions and instruction operands; assembly language uses mnemonic symbols to write programs, which is more convenient than binary code programming in machine language, and simplifies it to a certain extent. programming process.

What assembly language instructions are used to replace binary

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

Assembly language instructions use "mnemonics" to replace binary.

Assembly language (Assembly Language) is any low-level language used for electronic computers, microprocessors, microcontrollers or other programmable devices, also known as symbolic language. In assembly language, mnemonics are used to replace the opcodes of machine instructions, and address symbols or labels are used to replace the addresses of instructions or operands. In different devices, assembly language corresponds to different machine language instruction sets, which are converted into machine instructions through the assembly process. There is a one-to-one correspondence between a specific assembly language and a specific machine language instruction set, and they are not directly portable between different platforms.

Mnemonic is a symbol that is easy for people to remember and can describe the instruction function and instruction operands. The mnemonic is an English word or its abbreviation that indicates the instruction function.

Assembly language uses mnemonic symbols to write programs, which is more convenient than using binary code programming in machine language, and simplifies the programming process to a certain extent. The characteristic of assembly language is that symbols replace machine instruction codes, and mnemonics correspond to instruction codes one-to-one, basically retaining the flexibility of machine language. Using assembly language can be machine-oriented and make better use of the characteristics of the machine, resulting in higher-quality programs.

According to the target of the instruction, it can be divided into pseudo instruction and real instruction (hard instruction). Pseudo instructions are commands that act on the assembler; real instructions are commands that act on the real processor.

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What assembly language instructions are used to replace binary. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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