Directive ASSERT

Asmc Macro Assembler

Asmc Macro Assembler Reference

.ASSERT

.ASSERT[D|W|B] <assert_expression>
.ASSERT:[<handler> | ON | OFF | PUSH | POP | PUSHF | POPF | CODE | ENDS]

Options

ON/OFF Main switch.
PUSH/POPSave and restore the ASMC flag. Stack level is 128.
PUSHF/POPFToggles using PUSHF[D|Q] before calling handler.
CODE/ENDSAssemble code section if ASSERT is ON.
Handler The assert macro calls this routine if expression is not true. The default handler name is assert_exit.

See Also

Directives Reference | .IF | Return code