.BREAK

Asmc Macro Assembler

Asmc Macro Assembler Reference

.BREAK

.BREAK(n) [[.IF condition]]

Generates code to terminate a .WHILE or .REPEAT block if condition is true.

BREAK[(n)] is optional nesting level to terminate.

    .while 1
        .break          ; break .while 1
        .while 2
        .break(1)       ; break .while 1
        .while 3
            .break(2)   ; break .while 1
            .while 4
                .break(3)   ; break .while 1
                .break(2)   ; break .while 2
                .break(1)   ; break .while 3
            .endw
        .endw
        .endw
    .endw

See Also

Directives Reference | .CONTINUE