A Basic language element
1; Integer constants
Integer constant expression: [{+/-}] digits [radix]
The expression of integer constants is inseparable from the binary, usually by adding letters at the tail to differentiate:
Hex h
Decimal t (generally omitted)
Octal o/q
Binary b
Coded real number R
Note: Hexadecimal begins with the letter in order to partition with the identifier, must precede the number 0
2. Shaping constant expressions
The shaping constant expression refers to an arithmetic expression, consisting of an integer constant, an arithmetic operator, and note that the result of an integer constant expression must also be an integral constant whose number of bits should be within the number of bits of the processor
Arithmetic expressions are ranked by priority from high to low generally:
() +,-(one dollar plus minus) *,/MOD +,-
3; Real Constants
Real constants are also called floating-point constants, and real constants generally refer to decimal real numbers, which are generally referred to as coded real numbers.
Real-Number constant expression: [{+/-}]integer. [Integer] [e[{+/-}]integer]
Example: +45.4E+12
Encoded real numbers: hexadecimal real numbers, expressed in IEEE floating-point number format
4. Character constants
Character constants are one character enclosed in single or double quotation marks, where characters are stored and processed using ASCLL encoding to convert to integers.
For example: ' A ', ' a '
5; string Constants
String constants are one or more characters enclosed in single or double quotation marks (which can be whitespace),
Example: ' Aadad ', ' SSD '
As with character constants, each character in a string constant is encoded as an integer by ASCLL and consumes one byte of storage space
6. Reserved words
Reserved words are special characters, or strings, that are used according to the context, and reserved words are not case-sensitive, for example: the meaning of Mov,mov,mov is the same
Types of reserved words:
Instruction Mnemonic: for example, Mov,add,jmp,mul,call
Register Name: for example, Eax,ebx,ecx,edx,esi,ess,eflag
Pseudo-directive: tells the assembler how to assemble the program
Properties: Lift variables and constants using information, for example, Byte,sbyte
Operator: used in a constant expression
Predefined characters: For example, @data, which is the integer value that returns a constant in the assembly
This article is from the "free exploration Ice blade Pioneer" blog, please make sure to keep this source http://icesword.blog.51cto.com/6671637/1865521
Assembly language: Based on X86 Processor Chapter III Review notes