Some Other Assembler Directives

In addition to declarations using the PUBLIC and EXTERN directives, it is possible to declare macros using the GLOBAL directive, which is equivalent to the combination of PUBLIC and EXTERN .

  • PURGE macro name This directive cancels the loading of the specified macro. It is used when working with the library of macros to avoid a memory shortage.

  • LENGTHOF This macro defines the number of data elements, SIZEOF defines the data size (both are missing in TASM).

The following are directives for specifying the command set:

  • .8086 Only commands from the 8086 microprocessor command set are allowed. This directive is used by default.

  • .186 186 commands are allowed.

  • .286 and .286P Commands from the i286 processor's command set are allowed. The P suffix here and later means that the protected mode commands are allowed.

  • .386 and .386P Stand for allowing the i386 microprocessor's command set.

  • .486 and .486P Commands of the i486 processor are allowed.

  • .586 and .586P This means that Pentium (P5) processor commands are allowed.

  • .686 and .686P Pentium Pro and Pentium II (P6) commands are allowed.

  • .8087 Commands of the i8087 coprocessor are allowed.

  • .287 i286 coprocessor commands are allowed.

  • .387 i387 coprocessor commands are allowed.

  • .MMX MMX extension commands are allowed.

The directives for controlling the listing are as follows :

  • NAME Specifies the module name.

  • TITLE Defines the listing title.

Note 

By default, both the module name and the listing name match the filename.

  • SUBTTL Defines the listing subtitle .

  • PAGE Defines the size of the listing page: width and height. The page directive without arguments starts a new listing page.

  • .LIST Outputs a listing.

  • .XLIST Does not produce the listing.

  • .SALL Suppresses the printing of macros.

  • .SFCOND Suppresses the printing of conditional blocks with false conditions.

  • .LFCOND Prints conditional blocks with false conditions.

  • .CREF Allows cross-referencing of the listing.

  • .XCREF Suppresses cross-referencing of the listing.



The Assembly Programming Master Book
The Assembly Programming Master Book
ISBN: 8170088178
EAN: 2147483647
Year: 2004
Pages: 140
Authors: Vlad Pirogov

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net