We recommend that you write your assembler subprograms to comply with the standard COBOL calling convention (bits 0 and 1 set to 0, the default). The assembler subprogram can consist of multiple code and data segments.
Assembler subprograms must be statically or dynamically linked. If they are statically linked they must use the faster form of static linking. To do this, call the assembler subprogram using the COBOL statements:
SPECIAL-NAMES. CALL-CONVENTION 8 IS litlinked. . . . CALL litlinked "EXAMPLE" USING parameter1, parameter2
The registers used, assuming the standard call convention, are:
For an example, see Example of Calling an Assembler Subprogram.