Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Blinker 5.10 Online Reference - <b> microsoft basic pds 7.1 / vb dos 1.0</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Microsoft BASIC PDS 7.1 / VB DOS 1.0
------------------------------------------------------------------------------
 Blinker supports version 7.1 of Microsoft BASIC PDS and version 1.0 of
 Visual Basic for DOS to create DOS real mode programs. The following sample
 programs written in Microsoft BASIC will be used throughout this section to
 illustrate the basics of linking Microsoft BASIC programs with Blinker.
 When creating programs with BASIC and Blinker, the .OBJ file containing the
 main procedure must be in the root. All BASIC modules in an overlaid program
 must be compiled with the -O switch, which precludes the use of CHAIN with
 COMMON.

 TEST.BAS
 DECLARE SUB limerick
 CALL limerick
 END
 LIMERICK.BAS
 SUB limerick
 print "There was a young fellow from Microsoft"
 END SUB

 The two modules are compiled as follows :

 BC -o test;
 BC -o limerick;

 To execute Blinker from the command line :

 BLINKER FILE test,limerick

 This causes Blinker to link the two object modules specified in the FILE
 command (test.obj and limerick.obj) to create an executable program with the
 name TEST.EXE, which is the name of the first .OBJ file in a FILE command.

 Non-overlaid program

 The following link script file produces the same result as the above
 execution of Blinker from the command line :

 # TEST.LNK (This is a comment)
 FILE test
 FILE limerick

 To execute Blinker when using the above sample link script file use the
 following command :

 BLINKER @test

 The `@' character informs Blinker that what follows is the name of a link
 script file. Blinker will assume the extension `.LNK' unless one is given on
 the command line.

 Overlaid program with additional commands

 # TESTCMD.LNK
 # 50 kb overlay area
 BLINKER OVERLAY OPSIZE 50
 # Run overlays in pageframe
 BLINKER OVERLAY PAGEFRAME ON
 BLINKER MESSAGE WINK    # Only wink one eye
 FILE test               # Main routine must be in root
 BEGINAREA               # Start of overlays
    FILE limerick        # This file is overlaid
 ENDAREA                 # End of overlays
 OUTPUT t                # Output .EXE name
 MAP A,S                 # Create MAP file

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