![](/images/backgrounds/286207/hp-hp-ux-developer-tools-reference-guide-66968795x1.png)
Assembler Directives and
.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
.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 | |
| LDW | |
LAB | ADDIBF,=,N | |
| .ENDM |
|
.CODE
.IMPORT $global$
.IMPORT mark
.IMPORT count
.PROC
call_DECR
.CALLINFO FRAME=0, SAVE_RP
.ENTER
DECR mark,count
.LEAVE
.PROCEND
Chapter 4 | 95 |