Motorola HC12 User Manual

Page 169

Advertising
background image

Assembler Directives

CLIST — List Conditional Assembly

MCUez HC12 Assembler

User’s Manual

MOTOROLA

Assembler Directives

169

Example:

Listing file with

CLIST ON

:

When assembling the code:

CLIST ON

Try:EQU 0

IFEQ Try

LDD #1023

ELSE

LDD #0

ENDIF

The corresponding listing file is:

Try:EQU 0

IFEQ Try

37 B5 03 FF LDD #1023

ELSE

ADD #0

ENDIF

Advertising