Download ETEC Assembler Reference Manual
Transcript
3. Preprocessing and Directives 3 Preprocessing and Directives This section covers preprocessing and directives. 3.1 Text Replacement using #define Simple text replacement is supported via a C-style #define as follows. #define SOME_ADDRESS sprm0x41 ram diob <- SOME_ADDRESS. // This is the same as the following ram diob <- sprm0x41. The text replacement can span multiple lines using the continuation character, '\', as follows. #define A_ValuE 10 \ + 2 \ - 3; 3.2 File Inclusion One file can include another file using the C-style #include directive as follows. #include "MyHeaderFile.h" Freescale Syntax (C) 2007-2015 Assembler Reference Manual, page 19