Control Statements |
|
| #define | REPEAT(count) REPT count |
| | Repeat the following statements count times.
|
| #define | END_REPEAT() ENDR |
| | Mark the end of the statements to be repeated.
|
| #define | SET_LOC(offset) ORG offset |
| | Set the location counter to offset.
|
| #define | END_FILE() END |
| | Mark the end of the file.
|
Data Objects |
|
| #define | FILL_BYTES(count) DS8 count |
| | Allocate space for count bytes.
|
Symbol Definition |
|
| #define | L(name) name |
| | Turn name into a local symbol, if possible.
|
| #define | EXTERN_SYMBOL(name) EXTERN name |
| | Declare name as an external symbol referenced by this file.
|
| #define | FUNCTION(name) iar_begin_func name, text_##name, 0, 0 |
| | Define a file-local function called name.
|
| #define | PUBLIC_FUNCTION(name) iar_begin_func name, text_##name, 1, 0 |
| | Define a globally visible function called name.
|
| #define | WEAK_FUNCTION(name) iar_begin_func name, text_##name, 1, 1 |
| | Define a weak function called name.
|
| #define | WEAK_FUNCTION_ALIAS(name, strong_name) iar_weak_alias name, strong_name |
| | Define name as a weak alias for the function strong_name.
|
| #define | END_FUNC(name) ENDMOD |
| | Mark the end of the function called name.
|
Section Definition |
|
| #define | TEXT_SECTION(name) RSEG name:CODE:NOROOT |
| | Start a new section containing executable code.
|
| #define | RODATA_SECTION(name) RSEG name:CONST:NOROOT |
| | Start a new section containing read-only data.
|
| #define | DATA_SECTION(name) RSEG name:DATA:NOROOT |
| | Start a new section containing writeable initialized data.
|
| #define | BSS_SECTION(name) RSEG name:DATA:NOROOT |
| | Start a new section containing writeable zero-initialized data.
|
This group provides a good handful of macros intended to smooth out the differences between various assemblers, similar to what the Compiler Support module does for compilers, except that assemblers tend to be much less standardized than compilers.