.ENDM


Instructs the assembler to terminate the execution of a series of statements defined as the functions of the macro.

[Syntax]

Symbol field
Mnemonic field
Operand field
Comment field
 
.ENDM
 
[; comment]

[Function]

-

The .ENDM directive instructs the assembler to terminate the execution of a series of statements defined as the functions of the macro.

[Description]

-

If the .MACRO, .REPT, or .IRP directive corresponding to .ENDM directive does not exist, the CC-RL outputs the message then stops assembling.

[Example]

.MACRO - .ENDM

ADMAC  .MACRO   PARA1, PARA2
       MOV      A, #PARA1
       ADD      A, #PARA2
       .ENDM

 

.REPT - .ENDM

      .REPT     3
      INC       B
      DEC       C
      .ENDM

 

.IRP - .ENDM

      .IRP      PAR 0x10, 0x20, 0x30
      ADD       A, #PAR
      MOV       [DE], A
      .ENDM