Ax51 User's Guide

;; Operator

The double-semicolon operator (';;') is used to signal that the remaining text on the line should not be output when the macro is expanded. This operator is typically used to precede comments that are not required in the macro expansion. For example:

MOV_R_A MACRO   n                       ;; helper macro
        MOV     R&n,A                   ;; set R# to 0
        ENDM


REGCLR  MACRO   CNT
        REGNUM  SET 0
        MOV     A, #0                   ;; load A with 0
                REPT    CNT             ;; rpt for CNT registers
                MOV_R_A %REGNUM         ;; set R# to 0
                REGNUM  SET REGNUM+1
                ENDM
        ENDM