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


Reply via email to