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.