OPT directive sets listing options from within the source code.
OPTdirective setting. The following table lists the valid settings:
Table 21-2 OPT directive settings
Turns on normal listing.
Turns off normal listing.
Page throw. Issues an immediate formfeed and starts a new page.
Resets the line number counter to zero.
Turns on listing for
Turns off listing for
Turns on listing of macro expansions.
Turns off listing of macro expansions.
Turns on listing of macro invocations.
Turns off listing of macro invocations.
Turns on the first pass listing.
Turns off the first pass listing.
Turns on listing of conditional directives.
Turns off listing of conditional directives.
Turns on listing of
Turns off listing of
--list= assembler option to turn onlisting.
By default the
--list= option produces a normallisting that includes variable declarations, macro expansions, call-conditioneddirectives, and
MEND directives. The listingis produced on the second pass only. Use the
OPT directiveto modify the default listing options from within your code.
You can use
OPT to format code listings.For example, you can specify a new page before functions and sections.
AREA Example, CODE, READONLYstart ; code ; code BL func1 ; code OPT 4 ; places a page break before func1func1 ; code