For the Cosmic compiler, you need to define equates for the inline assembly using equ. If you want to use an equate or value in C as well, you need to define it using #define as well. For this compiler, you only need one version (i.e., use #define) both for C and for inline assembly. The equ directive is not supported in normal C code.
#ifdef __MWERKS__ #define CLKSRC_B 0x00 /*; Clock source */ #else CLKSRC_B : equ $00 ; Clock source #endif