User’s Manual MCUez HC12 Assembler
290 Assembler Messages MOTOROLA
Assembler Messages
12.3.51 A12009: Illegal Expression
Type: Error
Description: An illegal expression is specified in a PC relative addressing
mode. The illegal expression may be generated in two cases:
• A complex expression is specified when a PC relative
expression is expected.
• A left or right parenthesis is missing in the expression.
Example:
CodeSec1: SECTION
Entry1:
NOP
CodeSec2: SECTION
Entry2:
NOP
BRA #200
Tip: Change the expression to a valid expression.
Example:
CodeSec1: SECTION
Entry1:
NOP
CodeSec2: SECTION
Entry2:
NOP
BRA Entry2
BRA (Entry2 + 1)