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