Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 611 Bytes

dot_assert.md

File metadata and controls

29 lines (17 loc) · 611 Bytes

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/POP Save and restore the ASMC flag. Stack level is 128.

  • PUSHF/POPF Toggles using PUSHF[D|Q] before calling handler.

  • CODE/ENDS Assemble 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