User’s Manual MCUez HC12 Assembler
258 Assembler Messages MOTOROLA
Assembler Messages
12.3.14 A2304: Macro Definition Within Definition
Type: Error
Description: A macro definition is detected inside another macro definition.
The macro assembler does not support this.
Example:
AddM: MACRO
AddX: MACRO
LDX \1
INX
STX \1
ENDM
LDD \1
ADD \2
STD \1
ENDM
Tip: Define the second macro outside the first one.
Example:
AddX: MACRO
LDX \1
INX
STX \1
ENDM
AddM: MACRO
LDD \1
ADD \2
STD \1
ENDM