The MEXIT instruction provides an exit for the assembler from any point in the body of a macro definition. The MEND instruction provides an exit only from the end of a macro definition (see MEND statement for details).
The MEXIT instruction statement can be used only inside macro definitions.
|
The MEXIT instruction causes the assembler to exit from a macro definition to the next sequential instruction after the macro instruction that calls the definition. (This also applies to nested macro instructions, which are described in Nesting macro instruction definitions.)
For example, the following macro definition contains an MEXIT statement:
MACRO
EXITS
DC C'A'
DC C'B'
DC C'C'
MEXIT
DC C'D'
DC C'E'
DC C'F'
MEND
When the macro definition described above is called, the following statements are generated:
EXITS + DC C'A' + DC C'B' + DC C'C'
[ Top of Page | Previous Page | Next Page | Contents | Index ]