Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <b>call invoke subprogram or assembly subroutine</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CALL                     Invoke Subprogram or Assembly Subroutine

 CALL procname [(parmlist)]

    Transfers control to a subprogram or assembly language subroutine.

    procname    Specifies the subprogram or assembly routine to be called.
                The first 31 characters are significant. If name is an
                assembly language subroutine, it must be a PUBLIC symbol
                and must not contain '$' or '_' characters.

    parmlist    Specifies one or more parameters to be passed to the
                subprogram or routine. Parameters must be separated by
                commas. Array parameters should be specified by the array
                name followed by empty parentheses.

   -----------------------------------------------------------------------

      Notes:    CALL passes unsegmented addresses of parameters. To pass
                segmented addresses, use CALLS.

                Note the following differences between QuickBASIC and
                interpreted BASIC:

                1.  QuickBASIC uses 4-byte string descriptors, while
                    interpreted BASIC uses 3-byte descriptors. An assembly
                    subroutine that uses string arguments may therefore
                    need to be modified if it was originally written to
                    run with an interpreted program.

                2.  The QuickBASIC CALL statement calls subroutines by
                    name; interpreted BASIC's CALL statement calls
                    subroutines by offset address. To call a subroutine by
                    address in QuickBASIC, use CALL ABSOLUTE.

See Also: CALL ABSOLUTE CALLS

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson