Assembly Language Help (alang.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.
Call Stack-Based Procedures
 Example                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   INVOKE expression [,arguments]
 
  See also: Procedure Diagram, PROTO, .MODEL, OPTION LANGUAGE:
 
  Description:
 
     Automates the call interface to stack-based procedures. Handles all
     pushing of parameters onto the stack. Cleans up the stack when the
     procedure returns.
 
     The <invokelist> is passed to the procedure according to the types
     given in that procedure's prototype. If necessary, the assembler
     will generate code to convert the elements of <invokelist> to the
     types specified in the prototype.
 
     Parameter      Description
 
     expression     Expression yielding address or label of procedure
                    to be called. Must resolve to a valid address and
                    cannot include any forward references.
 
     arguments      Sequential list of parameters passed. Can be
                    register::register (for a register pair), expression,
                    or ADDR label. ADDR label passes the address of
                    <label> (segment and offset if DWORD, segment only
                    if WORD) to the procedure.
                                    -♦-