You copied the Doc URL to your clipboard.

21.8 ASSERT

The ASSERT directive generates an error message during assembly if a given assertion is false.

Syntax

ASSERT logical-expression

where:

logical-expression

is an assertion that can evaluate to either {TRUE} or {FALSE}.

Usage

Use ASSERT to ensure that any necessarycondition is met during assembly.

If the assertion is false an error message is generated andassembly fails.

Example

        ASSERT  label1 <= label2    ; Tests if the address                                    ; represented by label1                                    ; is <= the address                                     ; represented by label2.

Related reference

Was this page helpful? Yes No