Reference Guide

Chapter 4 95
Assembler Directives and Pseudo-Operations
.LISTOFF and .LISTON Directives
.LISTOFF and .LISTON Directives
The .LISTOFF and .LISTON directives control the expansion of
instructions for all macro invocations, all predefined subspace
declarations, and the .ENTER and .LEAVE pseudo-operations. .LISTOFF
causes the Assembler to cease listing expanded instructions until a
.LISTON directive is encountered. .LISTON causes the Assembler to list
expanded instructions until a .LISTOFF directive is encountered.
The default is .LISTON.
Syntax
.LISTOFF
.LISTON
Example
The following is the definition of the macro DECR. It is referred to in the
assembly listing generated when .LISTON was used with a procedure
containing the macro invocation.
DECR .MACRO LAB,VAL
SKF ADDIL L’VAL-$global$,%dp
LDW R’VAL-$global$(%r1),%r20
LAB ADDIBF,=,N -1,%r20,LAB
.ENDM
.CODE
.IMPORT $global$
.IMPORT mark
.IMPORT count
.PROC
call_DECR
.CALLINFO FRAME=0, SAVE_RP
.ENTER
DECR mark,count
.LEAVE
.PROCEND