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 dynamically linked.
The registers used, assuming the standard call convention, are:
For an example, see Example of Calling an Assembler Subprogram.