hm...
just tried this and it works.
the only symbol \@ being used by macro generator.
Check if there are no and extra chars within a macro defenition.
~d
On Sunday 21 December 2003 04:27, Claude Sylvain wrote:
> Hello all,
>
> My setup:
> --------------
> OS: Windows XP
> MSPGCC installer release: 030506
> MSPGCC version: 3.2.3
> MCU: MSP430F149
>
>
> The problem is that the mspgcc assembler generate error when using the '&'
> symbol inside a macro like this one:
>
> ---------------------------------------------------------------------------
>---- .EQU P1OUT, 0x0021 ;Port 1 Output.
> ...........................................................................
>....
>
> .MACRO MY_MACRO
>
> mov.b &P1OUT,R5 ;Read port 1 outputs latch.
>
> .ENDM
>
> ...........................................................................
>....
>
> MY_MACRO ;Calling the macro.
> ---------------------------------------------------------------------------
>----
>
> The mspgcc assembler generate the following messages:
>
> ---------------------------------------------------------------------------
>---- misc.asm: Assembler messages:
> misc.asm:198: Error: missing operand
> misc.asm:198: Error: unknown expression in operand &
> misc.asm:198: Error: missing operand
> misc.asm:198: Error: unknown expression in operand &
> ---------------------------------------------------------------------------
>----
>
>
> If I put the line "mov.b &P1OUT,R5" outside the macro, the assembler will
> not produce any error.
>
>
> Is there a way to use instruction that use a '&' inside a macro ?
>
>
> Claude.
--
/*****************************************************************
("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ
`6_ 6 ) `-. ( ).`-.__.`) State Polytechnical Univ.
(_Y_.)' ._ ) `._ `. ``-..-' Radio-Physics Departament
_..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia
(il),-'' (li),' ((!.-' +7 (812) 5403923, 5585314
*****************************************************************/