Built-In ARM Assembler Variables
9/7/2007
The ARM assembler contains built-in variables for programmer convenience.
The following table shows the built-in variable definitions.
Variable | Description |
---|---|
{PC} or . |
Contains the current value of the program location counter. |
{VAR} or @ |
Contains the current value of the storage area location counter. |
{TRUE} |
Contains the logical constant true. |
{FALSE} |
Contains the logical constant false. |
{OPT} |
Contains the 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 is specified. |
{ARCHITECTURE} |
Has the value of the selected ARM architecture: 4 or 4T. |
See Also
Reference
Predeclared ARM Register Names