any expression after '#' must contain a constant expression with maximum one 
undefined symbol (defined sooner or later as .global , .comm , .lcomm and 
filled out on a link stage)

So, if you've got TASSEL1 and TACLR undefined, you got an error.

~d

On Sunday 09 March 2003 17:57, Roland Zitzke wrote:
> Hi,
> this has probably been discussed before but I can't find a hint anywhere on
> the web.
> The following assembler statement works perfect.
> <--snip
> #define MYFLAGS TACLR|TASSEL1
> SetupTA:     mov.w   #MYFLAGS,&TACTL   ;Clear TAR & set TAR source = SMCLK
> ---->
>
> However if I manually expand the macro into the code I receive an unknown
> operand error for the string which is in total considered to be the
> operand: SetupTA:     mov.w   #TASSEL1|TACLR,&TACTL   ;Clear TAR & set TAR
> source = SMCLK
> results in
> Unknown operand: "#TASSEL1|TACLR"
> i.e. the bitwise calculation is not performed by the preprocessor.
>
> Any suggestions to "or" flags together in an emediate statement without
> spending a define for the results?
> Thanks
> Roland
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
> for complex code. Debugging C/C++ programs can leave you feeling lost and
> disoriented. TotalView can help you find your way. Available on major UNIX
> and Linux platforms. Try it free. www.etnus.com
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users

-- 
/********************************************************************
     ("`-''-/").___..--''"`-._     (\   Dimmy the Wild      UA1ACZ
      `6_ 6  )   `-.  (     ).`-.__.`)  Enterprise Information Sys 
      (_Y_.)'  ._   )  `._ `. ``-..-'   Nevsky prospekt,   20 / 44
    _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,   Russia
   (il),-''  (li),'  ((!.-'             +7 (812)  3468202, 5585314
 ********************************************************************/


Reply via email to