A166 User's Guide

Bracket Function

The Bracket MPL function prevents macro processing of specified text. The syntax for the bracket function is:

%(balanced-text)

The bracket function disables all macro processing of the balanced-text contained within the parentheses. However, the Escape function, Comment function, and parameter substitution are still recognized.

The length of the balanced-text is not limited. Therefore, the bracket function may prove easier to use than the escape function. For example:

ASM%(166)      Evaluates to     ASM166
%(1,2,3,4,5)   Evaluates to     1,2,3,4,5

Source Text

%*DEFINE (DW (LIST, LABEL))  (
%LABEL:   DW     %LIST
)

%DW (%(120, 121, 122, 123, -1), TABLE)

Output Text

TABLE: DW 120, 121, 122, 123, -1

Note

  • The DW macro defined in the above example adds word definitions to the source file. It uses two parameters: one for the word expression list and one for the label name. Without the bracket function, it is impossible to pass more than one expression into the list since the first comma would be interpreted as the delimiter separating the actual parameters. The bracket function used in the macro call prevents the expression list (120, 121, 122, 123, -1) from being evaluated as separate parameters.