A12009: illegal expression – Motorola HC12 User Manual

Page 259

Advertising
background image

Assembler Messages

Message Codes

MCUez HC12 Assembler

User’s Manual

MOTOROLA

Assembler Messages

259

12.3.15 A2305: Illegal Redefinition of Instruction or Directive Name

Type:

Error

Description:

An assembly directive or an HC12 instruction name has been
used as a macro name. This is not allowed to avoid any
ambiguity when the symbol name is encountered. The macro
assembler cannot detect if the symbol refers to the macro or the
instruction.

Example:

ADDD: MACRO

LDD \1

ADD \2

STD \1

ENDM

Tip:

Change the name of the macro to an unused identifier.

Example:

ADDM: MACRO

LDD \1

ADD \2

STD \1

ENDM

Advertising