SLAU131V October 2004 – February 2020
The assembler has several types of predefined symbols.
$, the dollar-sign character, represents the current value of the section program counter (SPC).
In addition, the following predefined processor symbolic constants are available:
Symbol name | Description |
---|---|
.MSP430(1) | Always set to 1 |
.MSP430X(1) | Set to 1 if the --silicon_version=mspx option is specified, otherwise 0 |
.MSP4619(1) | Set to 1 if the --silicon_version=mspx option is specified, otherwise 0 |
_ _LARGE_CODE_MODEL_ _ | Set to 1 if the --code_model=large option is specified; otherwise 0 |
_ _LARGE_DATA_MODEL_ _ | Set to 1 if the --data_model=large or −−data_model=restricted option is specified, otherwise 0 |
_ _LONG_PTRDIFF_T_ _ | Set to 1(indicates ptrdiff_t is a long) if the --data_model=large option is specified, otherwise 0 |
_ _UNSIGNED_LONG_SIZE_T_ _ | Set to 1 (indicates size_t is an unsigned long) if the --data_model=large option is specified, otherwise 0 |
_ _TI_EABI_ _ | Set to 1 if EABI is enabled. EABI is now the only supported ABI; see Section 4.4. |