.MEXIT terminates a macro expansion before the end of the macro. Termination is the same as if .ENDM were encountered. You can also use the directive within repeat blocks. .MEXIT is useful in conditional expansion of macros and repeat blocks because it bypasses the complexities of nested conditional directives and alternate assembly paths.