We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I want to assemble a certain portion of my *.a51 file based upon some argument that I pass from the command line or the GUI (Options->A51->SET).
When I pass the argument/symbol by writing something in the field (Option->A51->SET), e.g. COMPILE_FOR_SINGLE_PHASE, it still processes any #define under COMPILE_FOR_THREE_PHASE:
$IF COMPILE_FOR_SINGLE_PHASE #define SinglePhase $ENDIF
$IF COMPILE_FOR_THREE_PHASE #define ThreePhase $ENDIF
The problem is that it defines both of the macros "SinglePhase" and "ThreePhase", which creates havoc.
If I remove the #define from both of them and replace it with __ERROR__ "This line is parsed by assembler", the conditional directives are working fine.
I am using:
1. uVision3 v3.03 2. C51.exe v7.06 3. a51.exe v7.07 4. bl51.exe v5.03
I am NOT using MPL.
Any help would be appreciated.
Regards Aman