|
From: | Claude Sylvain |
Subject: | Problem with mspgcc assembler and macro. |
Date: | Sun, 21 Dec 2003 13:13:36 -0500 |
Hello,
My setup:
--------------
OS:
Windows XP
MSPGCC installer release:
030506
MSPGCC version:
3.2.3 MCU:
MSP430F149The 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.
|
[Prev in Thread] | Current Thread | [Next in Thread] |