CLIST - List conditional assembly

Syntax
  CLIST [ON|OFF]
  
  
Synonym

None

Description

The CLIST directive controls the listing of subsequent conditional assembly blocks. It precedes the first directive of the conditional assembly block to which it applies, and remains effective until the next CLIST directive is read.

When the ON keyword is specified in a CLIST directive, the listing file includes all directives and instructions in the conditional assembly block, even those which do not generate code (which are skipped).

When the OFF keyword is entered, only the directives and instructions that generate code are listed.

A soon as the -L: Generate a listing file assembler option is activated, the Assembler defaults to CLIST ON.

Example

The following listing is an example where the CLIST OFF option is used.

Listing: Listing file with CLIST OFF

     CLIST OFF
Try: EQU   0

     IFEQ  Try

       LD D2,   #103

     ELSE

       LD D2,   #0

     ENDIF

The following listing is the corresponding listing file.

Listing: Example assembler listing where CLIST ON is used

Abs. Rel.   Loc    Obj. code   Source line
---- -----  ------ ---------   -----------

    2    2         0000 0000   Try: EQU   0

    3    3         0000 0000        IFEQ  Try

    4    4  000000 A667               LD D2,   #103

    5    5                          ELSE

    7    7                          ENDIF

The following listing is a listing file using CLIST ON.

Listing: CLIST ON is selected

     CLIST ON
Try: EQU     0

     IFEQ    Try

       LD D2,   #103

     ELSE

       LD D2,   #0

     ENDIF

The following listing is the corresponding listing file.

Listing: Example assembler listing where CLIST ON is used

Abs. Rel.   Loc    Obj. code   Source line
---- -----  ------ ---------   -----------

    2    2         0000 0000   Try: EQU   0

    3    3         0000 0000        IFEQ  Try

    4    4  000000 A667               LD D2,   #103

    5    5                          ELSE

    6    6                            LD D2,   #0

    7    7                          ENDIF

    8    8