Small Turtle Assembly Language Note 1

Source: Internet
Author: User

Today I will start to learn assembly language, learning the purpose of assembly language, not using assembly language to write programs, but in our use of high-level languages such as C and C + + or C # and other languages to write code, a better understanding of your own written line of code:


1. We want to understand that assembly language is directly on the hardware to work on the programming language, first understand the structure of the hardware system, this does not need to know too deep, completely can be tasted;

2. Our research focuses on how to use the programming structure and instruction set of a hardware system to work with an effective and flexible control system-- not to say that after learning to write programs in assembly language, it's pretty scary.

3. Machine language is the set of machine instructions, which is the command instruction that the machine executes correctly: 01010000 (PUSH AX)

4. assembly language and machine instruction one by one correspond, assembly language can be compiled into machine language by compilers, machine language can also be directly through the anti-compiler to restore to the assembly, they are strictly relevant, but with some English symbols instead of obscure machine instruction (1010), is the mnemonic of machine instruction

5. Assembly Instructions: MOV AX,BX Send the contents of the register BX to the AX register ax, BX: Register code


6. Register: A device in the CPU that can store data, a CPU has multiple registers, the register is not a cache or memory, but is closer to the description of the machine hardware

Small Turtle Assembly Language Note 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.