Assembly language read --- Continued

As already wrote the third chapter of that part of the data type

Next is something about directives and other assorted

1. The current address counter: $

    Used to calculate the length of the array and a character string, such as:

.data 
List DB 12 is , 34234 , 453 , 45 , 43 is , . 5 
listp DB ($ -list); represents the length of the memory space occupied by the array elements, as the word is the number of elements of the cell array, 
; as required element size is a word, or double word, as well as larger data type needs to be divided type list is divided by the element size or directly

2. The directive equals (=) with EQU and its "little brother" TEXTEQU

  Difference: only directive equals an integer used to define an expression, while there are three EQU formats, as follows

name equ expression 
name equ sybal
name equ <text>

EQU not redefine it, may be =, with the EQU TEXTEQU Similarly, he also has three formats, but it EQU biggest difference is that he may be redefined

3. The big-endian and little-endian storage format storage format

4. The extended all-zero integer symbol spreading

MOVZX (all zero extended) and MOVSX (sign extension)

Mention here sign extension, when sent to large numbers decimal, fractional sign extension will be copied into the most significant bit of large numbers of high

5. LAHF and SAHF

  LAHF: The EFLAGS sign bit copied to the AH,

  SAHF: AH Copy the contents of the EFLAGS (RFLAGS), load status flag

6. XCHG exchange data

  Without the use of so-called immediate value as an operand

7. Direct Offset

  [Name Variable + constant]

Dec 8.inc and does not affect the carry flag

9. offset

  offset: directive, reference numeral offset data directly - the offset operand

    Reference numeral data directly referred to as the direct addressing mode address

    Using the offset to the address data back to the register, is an address register indirect addressing address is called

10.PTR 

  PTR: operand has been declared a rewrite of the size of the type

  PTR only be used in conjunction with standard compilation type: Note

11. The indexing operand

12.loop is to ecx-1, the determination is performed

 

Guess you like

Origin www.cnblogs.com/love-coding/p/11782918.html