beautypg.com

Motorola HC12 User Manual

Page 180

background image

User’s Manual

MCUez HC12 Assembler

180

Assembler Directives

MOTOROLA

Assembler Directives

The following code segment:

cpChar: MACRO

IFC "\1", ""

FAIL 200

MEXIT

ELSE

LDD \1

ENDIF

IFC "\2", ""

FAIL 600

ELSE

STD \2

ENDIF

ENDM

codeSec: SECTION

Start:

cpChar , char2

Generates this error message:

>> in "Y:\DEMO\HC12A\cbe.asm",line 7,col 19, pos 112

IFC "\1", ""

FAIL 200

^

ERROR A2329: FAIL found

If a string is supplied as the operand, the assembler generates
an error message, including the line number and . The
assembler does not generate an object file.