cobol2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
REGPARM Details (↑ Object Code)
 Key Summary                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     This directive only affects .OBJ files.
 
     The parameter shows when the alternative mechanism is to be used. Its
     possible values are:
 
      IN    For parameters passed to the program.
      OUT   For passing parameters to other programs.
 
     REGPARM with neither parameter causes this mechanism to be used in
     both cases.
 
     With this alternative mechanism, the first parameter is passed in
     ES:DI, the second in DS:SI, and subsequent parameters on the
     stack, such that the third item in the USING clause is popped off
     the stack last, and the last item popped first.
 
     If this directive is used with FASTLINK, no USING clause should
     have more than three parameters. If REGPARM "OUT" is used,
     LITLINK is assumed; do not try to turn it off with NOLITLINK.
 
     REGPARM cannot be used with BY VALUE parameters.
                                    -♦-