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.
PROC/PROTO/INVOKE Diagram
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Procedures can be accessed across source files in the following
     manner:
 
                   ┌─TOOLS.INC──────────────────────┐
                   │                                │
                   │ Task      PROTO C FAR arg:WORD │
                   └───────────────┬────────────────┘
                                   │
                  ┌────────────────┴─────────────────┐
                  │                                  │
     ┌─USER.ASM───┴──────────┐          ┌─TOOLS.ASM──┴────────────────┐
     │                       │          │                             │
     │ INCLUDE   TOOLS.INC   │          │ INCLUDE   TOOLS.INC         │
     │                       │          │                             │
     │ INVOKE    Task, 5     │          │ Task      PROC C FAR \     │
     └───────────────────────┘          │             USES cx dx,     │
                                        │             arg:WORD        │
                                        │           ∙                 │
                                        │           ∙                 │
                                        │           ∙                 │
                                        │           ret               │
                                        │ Task      ENDP              │
                                        └─────────────────────────────┘
 
     NOTE: The PROC and INVOKE directives do not need to explicitly
           state the C and FAR attributes, because the PROTO directive
           sets them automatically.
                                    -♦-