AARM User's Guide

Discontinued

Directives

The AARM Assembler provides a number of directives you may use to control source file assembly. Directives are composed of one or more letters or digits and, unless otherwise specified, may be specified after the filename on the command line or within the source file when preceded by a dollar sign ('$'). For example:

AARM SAMPLE.S SYMBOLS DEBUG

or

$SYMBOLS DEBUG

or

$SYMBOLS
$DEBUG

The source file to assemble is SAMPLE.AS and SYMBOLS and DEBUG are the directives.

Assembler directives may be divided into two groups:

  • Primary directives are specified on the assembler command line or in first few lines of the assembly source file. These directives control how the assembler behaves for the entire module. If conflicting primary directives are specified on the command line and in the source file, the command line directive takes precedence.
  • General directives may be specified on the command line or anywhere in the source file. These directives control the immediate behaviour of the assembler and may be changed during assembly.

Note

  • Syntax is the same for directives specified on the command line and those specified in the source file.
  • Some directives may not be specified on the command line. If one of these directives is specified on the command line, the assembler generates a fatal error and aborts.

The following table is an alphabetical list of the control directives available in the AARM Assembler.

DirectiveGroupDescription
ARM7TDMIPrimaryEnables the ARM7 instruction set.
ARM9EPrimaryEnables the ARM9E instruction set.
ARM9ExPPrimaryEnables the ARM9ExP instruction set.
BIGENDIANPrimaryGenerates instructions in big-endian format.
CASEPrimaryEnables case-sensitive symbol names.
CONDGeneralIncludes (in the listing file) conditional source lines skipped by the preprocessor.
DATEPrimarySpecifies the date to use in the listing file header.
DEBUGPrimaryIncludes debugging information in the object file.
EJECT1GeneralInserts a form feed character into the listing file.
ERRORPRINTPrimarySpecifies the file name for error messages.
GENGeneralIncludes all macro expansions in the listing file.
GENONLYGeneralIncludes first level macro expansions in the listing file.
INCDIRPrimarySets additional include file paths.
INCLUDE2GeneralIncludes the contents of another file.
LISTGeneralIncludes the assembly source text in the listing file.
LITTLEENDIANPrimaryGenerates instructions in little-endian format.
MACROPrimaryEnables preprocessor expansion of standard macros.
NOAMAKEPrimaryExcludes build information from the object file.
NOCASEPrimaryDisables case-sensitive symbol names. All symbols are converted to uppercase.
NOCONDPrimaryExcludes (from the listing file) conditional source lines skipped by the preprocessor.
NODEBUGPrimaryExcludes debugging information from the object file.
NOERRORPRINTPrimaryDisables error messages output to the screen.
NOGENGeneralExcludes macro expansions from the listing file.
NOLINESPrimaryExcludes line number information from the generated object module.
NOLISTGeneralExcludes the assembly source text from the listing file.
NOMACROPrimaryDisables preprocessor expansion of standard and MPL macros.
NOOBJECTPrimaryDisables object file generation.
NOPRINTPrimaryDisables listing file generation.
NOSYMBOLSPrimaryExcludes the symbol table from the listing file.
NOSYMLISTGeneralExcludes subsequently defined symbols from the symbol table.
NOXREFPrimaryExcludes the cross-reference table from the listing file.
OBJECTPrimarySpecifies the name for the object file.
PAGELENGTHPrimarySpecifies the number of lines on a page in the listing file.
PAGEWIDTHPrimarySpecifies the number of characters on a line in the listing file.
PRINTPrimarySpecifies the name for the listing file.
RESTORE1GeneralRestores settings for the LIST and GEN directives.
SAVE1GeneralSaves settings for the LIST and GEN directives.
SYMBOLSPrimaryIncludes the symbol table in the listing file.
SYMLISTGeneralIncludes subsequently defined symbols in the symbol table.
TABSPrimarySpecifies the number of blanks required for tab characters in the listing file.
TITLEPrimarySpecifies the page header title in the listing file.
XREFPrimaryIncludes the cross-reference table in the listing file.

Note

  1. These directives may not be specified on the command line. They may only be specified in the source file.
  2. Primary directives may not be specified after an INCLUDE directive.