22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CXD Instruction<br />

The source statements following a CSECT instruction that either initiate or indicate<br />

the continuation of a control section are assembled into the object code of the<br />

control section identified by that CSECT instruction.<br />

The end of a control section or portion of a control section is marked by:<br />

Any instruction that defines a new or continued control section<br />

The END instruction<br />

The CSECT instruction may interact with any LOCTR instructions that are present.<br />

For more information about this interaction, see “LOCTR Instruction” on page 191.<br />

CXD Instruction<br />

The CXD instruction reserves a fullword area in storage. The linker or loader<br />

inserts into this area the total length of all external dummy sections specified in the<br />

source modules that are assembled and linked into one program. If a control<br />

section has not previously been established, CXD will initiate an unnamed (private)<br />

control section.<br />

►►──┬────────┬──CXD────────────────────────────────────────────────►◄<br />

└─symbol─┘<br />

symbol<br />

is one of the following:<br />

An ordinary symbol<br />

A variable symbol that has been assigned a character string with a value<br />

that is valid for an ordinary symbol<br />

A sequence symbol<br />

The linker or loader inserts into the fullword-aligned fullword area reserved by the<br />

CXD instruction the total length of storage required for all the external dummy<br />

sections specified in a program. If the GOFF assembler option is specified, CXD<br />

returns the length of the B_PRV class. If symbol denotes an ordinary symbol, the<br />

ordinary symbol represents the address of the fullword area. The ordinary symbol<br />

denoted by symbol has a length attribute value of 4.<br />

The following examples shows how external dummy sections may be used:<br />

ROUTINE A<br />

ALPHA DXD 2DL8<br />

BETA DXD 4FL4<br />

OMEGA CXD<br />

.<br />

.<br />

DC<br />

Q(ALPHA)<br />

DC<br />

Q(BETA)<br />

.<br />

.<br />

Chapter 5. Assembler Instruction Statements 125

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!