12 endif — end conditional assembly, 13 endm — end macro definition, Endif — end conditional assembly – Motorola HC12 User Manual

Page 176: Endm — end macro definition

Advertising
background image

User’s Manual

MCUez HC12 Assembler

176

Assembler Directives

MOTOROLA

Assembler Directives

8.12 ENDIF — End Conditional Assembly

Syntax:

ENDIF

Description:

The

ENDIF

directive indicates the end of a conditional block.

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

Example:

See an example of directive

IF

in

8.17 IF — Conditional

Assembly

.

8.13 ENDM — End Macro Definition

Syntax:

ENDM

Description:

The

ENDM

directive terminates both the macro definition and

macro expansion.

Example:

5 5

cpChar: MACRO

; start macro definition

6 6

LDD \1

7 7

STD \2

8 8

ENDM

; end of macro definition

9 9

codeSec: SECTION

10 10

Start:

11 11

cpChar char1, char2

12 6m 000000 FC xxxx + LDD char1

13 7m 000003 7C xxxx + STD char2

14 12 000006 A7 NOP

15 13 000007 A7 NOP

Advertising