Intel-based compilers include Microsoft'sMASM(Microsoft Macro Explorer ),Tasm(Turbo Cycler ),NASM(Netwide assebler ),GNU Explorer.
The syntax of tasm is very similar to that of MASM. The assembler next to the syntax of MASM is NASM, while the syntax of GNU extends er is completely different from that of MASM.
The assembly language has the ability to directly access computer hardware, but to master it requires you to be proficient in computer architecture and operating systems.
Each assembly language instruction corresponds to one machine instruction.
1. Bits: The bits start from 0 to the left. The leftmost bit is called the highest valid bit (Most significant bit, MSB); The rightmost bit is called the least valid bit (Least significant bit, LSB)
2. Integer storage size: In x86 computers, the basic storage size unit of all data isBytes; It can also be 2 bytes (Word), 4 bytes (double character), and 8 bytes.
3. signed integer: for x86 processors, the maximum valid value is 0, indicating a positive number; 1, indicating a negative number.
4. complement representation: the negative number uses the complement representation, that is, the absolute value of the negative number is obtained, and the bitwise inversion is obtained. Then, 1 is added to obtain the complement of the negative number.
Hexadecimal Complement: A simple method to return the hexadecimal number is to subtract the number on each bit of the hexadecimal number from 15. Then add 1 to get the complement code.
Page 17