Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/13/09 01:36
Read: times


 
#161461 - Passing argument to assembly file?
Hi,

I has posted my question on Keil website, but did not get any response (below link). I am posting my question here, hoping an answer from the gurus:

http://www.keil.com/forum/docs/thread13973.asp

-------------------------------

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

---------------------------------------------------

List of 3 messages in thread
TopicAuthorDate
Passing argument to assembly file?            01/01/70 00:00      
   order of processing            01/01/70 00:00      
      my hands are tied :-(            01/01/70 00:00      

Back to Subject List