beautypg.com

18 ifcc — conditional assembly, Ifcc — conditional assembly, Conditional types – Motorola HC12 User Manual

Page 183

background image

Assembler Directives

IFCC — Conditional Assembly

MCUez HC12 Assembler

User’s Manual

MOTOROLA

Assembler Directives

183

8.18 IFCC — Conditional Assembly

Syntax:

IFCC

[]

[ELSE]

[]

ENDIF

Description:

These directives can be replaced by the

IF

directive. If

IFCC

is true, the statements immediately following the

IFCC

directive are assembled. Assembly continues until the

corresponding

ELSE

or

ENDIF

directive is reached, after

which assembly moves to the statements following the

ENDIF

directive. Nesting of conditional blocks is allowed. The
maximum level of nesting is limited by the available memory
at assembly time.

Table 8-9

lists the available conditional types.

Table 8-9. Conditional Types

IFCC

Condition

Meaning

IFEQ

IF == 0

IFNE

IF != 0

IFLT

IF < 0

IFLE

IF <= 0

IFGT

IF > 0

IFGE

IF >= 0

IFC

,

IF ==

IFNC

,

IF !=

IFDEF

IF

IFNDEF

IF