qa.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.
PROC
   Directive Summary  Summary  Example
──────────────────────────────────────────────────────────────────────────────
 
  Syntax:  label PROC [NEAR|FAR] [langtype] [USES reglist], [arguments]
                 statements
                 RET [constant]
           label ENDP
 
  Defines a procedure with name label. To use langtype, reglist, or
  arguments, you must first use .MODEL and include a langtype.
 
  langtype    C, BASIC, PASCAL, or FORTRAN. Overrides .MODEL langtype.
 
  reglist     An optional list of registers that the assembler preserves
              with PUSH instructions (and POP instructions upon exit).
              Separate multiple registers with spaces.
 
  arguments   List of arguments. The assembler translates references to
              arguments into the actual reference to the stack location.
              Each argument can be optionally followed by a colon (:)
              and type. Separate multiple arguments with commas.
 
  RET         Return instruction. Size is NEAR or FAR, depending on the
              distance attribute of the procedure.
 
   See Also:  LABEL, PUBLIC, EXTRN, ENDP, RET
                                    -♦-