AARM User's Guide

Discontinued

Control Statements

The AARM Assembler provides a number of control statements that permit you to define symbol values, reserve and initialize storage, and control the placement of your code.

These statements should not be confused with processor instructions or with assembler directives. They do not produce executable code and, with the exception of the DB, DD, DW, DBPTR, DSPTR, and DPPTR statements, they have no direct effect on the contents of code memory. These controls change the state of the assembler, define user symbols, and add information to the object file.

Control statements may be divided into the following categories:

Address Control

StatementDescription
ORGSets the location counter to a specific offset or address.

Conditional Assembly

StatementDescription
IFBegins an IF-ELSE-ENDIF block.
ELSEIFBegins an alternate IF block.
ELSEBegins an ELSE block.
ENDIFTerminates an IF block.

Memory Initialization

StatementDescription
DBAllocates memory for one or more defined byte values.
DCBAllocates memory for one or more defined byte values.
DCDAllocates memory for one or more defined 32-bit values.
DCFAllocates memory for one or more defined 32-bit floating-point values.
DCF64Allocates memory for one or more defined 64-bit floating-point values.
DCWAllocates memory for one or more defined 64-bit values.
DDAllocates memory for one or more defined 32-bit values.
DFAllocates memory for one or more defined 32-bit floating-point values.
DWAllocates memory for one or more defined 64-bit values.
SPACEAllocates and clears memory to zero for a specified number of bytes.

Memory Reservation

StatementDescription
DSReserves space for one or more bytes.
DSBReserves space for one or more bytes.
DSDReserves space for one or more 32-bit double words.
DSWReserves space for one or more 16-bit words.

Procedure Declaration

StatementDescription
ENDPDefines the end of a function.
PROCDefines the beginning of a function.

Program Linkage

StatementDescription
EXTERNDefines external symbols.
EXTRNDefines external symbols.
NAMESpecifies the name of the current module.
PUBLICDefines symbols which may be used in other modules.

Segment Control

StatementDescription
AREADefines an absolute or relocateable segment.
RSEGSelects a relocateable segment previously defined.

Symbol Definition

StatementDescription
EQUSets a permanent symbol value.
LITAssigns a text string to a symbol name.
SETSets or resets a symbol value.

Miscellaneous

StatementDescription
__ERROR__Outputs a user-defined error message.
ENDSignals the end of the assembly module.