AnsweredAssumed Answered

HC12: Macro parameters

Question asked by Peter Richter on Dec 14, 2006
Latest reply on Dec 15, 2006 by Peter Richter
Hello,

may be someone can help me with flw.
I 've to assemble old HC11 code for a HC12 µctroller.
I'm using CW 4.5 B6037

The old macros looks like:
MENUE: MACRO &ID,&SK1TXT
FCB &ID ;MENUE ENTRY IDENTIFIER
FDB &SK1TXT ;SOFT KEY1 TEXT
MEND


I changed the syntax to

MENUE: MACRO
FCB \ID ;MENUE ENTRY IDENTIFIER
FDB \SK1TXT ;SOFT KEY1 TEXT
ENDM

and got an error message.

If I change it to

MENUE: MACRO
FCB \1 ;MENUE ENTRY IDENTIFIER
FDB \2 ;SOFT KEY1 TEXT
ENDM

all is fine.
But I don't want to use numbers, because I' ve also macros with more than 10 arguments and it will be more clear if I can use the given arguments. Further I found in the CW help this sentence: "A parameter designator consists of a backlashes character (\), followed by a digit (0 - 9) or an uppercase letter (A - Z). "
So why I can't use letters.
Is this due to that I only use a special edition of CW?
May be somebody has an answer.

Message Edited by CrasyCat on 2007-04-13 11:20 AM

Outcomes