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>calls invoke subprogram or assembly subroutine</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CALLS                    Invoke Subprogram or Assembly Subroutine

 CALLS name [(arglist)]

    Transfers control and (optionally) passes parameters to a subprogram
    or an assembly language subroutine.

        name    Specifies the subprogram or subroutine 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.

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

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

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

                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 CALL

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