Share via


Built-in ARM Assembler Variables

The ARM Assembler contains built-in variables for programmer convenience.

The following table shows the built-in variable definitions.

Variable Description
{PC} or . Contains current value of the program location counter.
{VAR} or @ Contains current value of the storage area location counter.
{TRUE} Logical constant true.
{FALSE} Logical constant false.
{OPT} Value of the currently set listing option. The OPT directive can be used to save the current listing option, force a change in it, or restore its original value.
{CONFIG} Has the value 32 if the assembler is in 32-bit program counter mode, and the value 26 if it is in 26-bit mode.
{ENDIAN} Has the value "big" if the assembler is in big-endian mode, and the value "little" if it is in little-endian mode.
{CODESIZE} Has the value 16 if compiling Thumb code. Otherwise it is 32.
{CPU} Has the name of the selected CPU, or generic ARM if no CPU specified.
{ARCHITECTURE} Has the value of the selected ARM architecture, 4 or 4T.

See Also

ARM Assembler | Predeclared ARM Register Names

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.