Old Basic Compiler? 
Author Message
 Old Basic Compiler?

Hoping someone could send me or point me in the right direction... I'm
looking for an *old* bc.exe, version 1, perhaps version 2.

Any thoughts would be much appreciated!

Bill



Sun, 26 May 2002 03:00:00 GMT  
 Old Basic Compiler?
i doubt if there was a bascom v2
there was qb v2, thought.

           BASM -- The Free BASIC to 80286 Assembly Language Compiler (p1
of 8)

        BASM -- The Free BASIC to 80286 Assembly Language Compiler

             You are the [1][LINK] visitor since October 1997 !

   Basm is a 100% free Basic Compiler that I began writing a few years
   ago that has proven to be popular with programmers starting out in the
   Black Art of Assembly Language Programming. Basm emits Intel 80286
   assembly language source code. The source code can then be assembled
   using the freeware Arrowsoft Assembler and linked using one of the
   free linkers also available from my list of downloads.
   The assembly language source code that BASM v6.4 creates stands alone
   -- that means there's no extra library's to link or files to include,
   and no multi-megabyte runtime files to distribute. And there's no
   hidden information, your translated BASIC program is all in one file
   for you to examine, tweak, or whatever!
   Basm supports 64k COM or 128k small model EXE format. You can also
   create TSR's using BASM_TSR which is a little tool kit which incluses
   a couple of sample source files that allow you to create fully dos
   re-entrant hot key activated popup TSR's.

     Several people have asked how to use BASM routines in powerbasic.
Do you really want to go to the Main screen? (y/n) [n]

           BASM -- The Free BASIC to 80286 Assembly Language Compiler (p2
of 8)

   **********************************************************************
   *********************

                      Save this in a file called A.BAS

   **********************************************************************
   *********************

   $FAR ' PowerBasic uses inter-segment calls

   function Sum (a,b,c)
   Sum = a+b+c
   end function

   **********************************************************************
   **********
   Next, compile A.BAS using BASM then EDIT the ASM file so that it looks
   like this:
   **********************************************************************
   **********

-- press space for more, use arrow keys to move, '?' for help, 'q' to quit.

           BASM -- The Free BASIC to 80286 Assembly Language Compiler (p3
of 8)
   .286p

   Code Segment Byte Public
   Assume CS:Code

     Sum Proc Far
     Public Sum
     Push BP
     Mov BP,SP

   ;***************************
   ;Sum = a + b + c
   ;***************************

     Xor AX,AX
     Add AX,Word Ptr[BP+06]
     Add AX,Word Ptr[BP+08]
     Add AX,Word Ptr[BP+10]
     Mov SP,BP
     Pop BP
     RetF 06
     Sum Endp
-- press space for more, use arrow keys to move, '?' for help, 'q' to quit.

           BASM -- The Free BASIC to 80286 Assembly Language Compiler (p4
of 8)

     Code Ends

   End

   **********************************************************************
   **********
   Next, assemble A.ASM using MASM or TASM You should now have a file
   called A.OBJ ready
   to be linked into PB.

         To try out your new function in PB, create this file in PB

   $link "a.obj"

   DECLARE FUNCTION Sum CDECL (ByVal Integer,ByVal Integer,ByVal Integer)
   as Integer

   PRINT Sum (10,20,30) 'this should print the number 60

   **********************************************************************
   ***********
-- press space for more, use arrow keys to move, '?' for help, 'q' to quit.

           BASM -- The Free BASIC to 80286 Assembly Language Compiler (p5
of 8)

                          A few general notes ...

   ** BASM pushes it's arguments left to right ( C-Style ) that's why you
   need to use CDECL

   ** ByVal forces PowerBasic to push the Value onto the stack and not a
   reference to it.

   **********************************************************************
   **********

                             The Compiler Files

   [2]Basm286.zip contains the BASM Compiler, a large help text file, and
                               revision list

   [3]Basm64sc.zip contains the PowerBasic version 3.2 source code to the
                               BASM Compiler

                                 Sample Files

-more- http://www.users.uswest.net/~sdiggins/basm286.zip

           BASM -- The Free BASIC to 80286 Assembly Language Compiler (p6
of 8)
      [4]Samples1.zip is a collection of 66 initial BASM code samples.

     [5]Samples2.zip is a collection of 40 additional BASM code samples

     [6]Demo64.zip here are a few more samples for the BASM 6.4 version

     [7]Basm_Tsr.zip is a BASM toolkit that allows you to create hotkey
                       activated popup TSR utilities

     [8]GuiHelp.zip A simple GUI demonstration written entirely in BASM

     [9]TxtHelp.zip Demonstrates how to use BASM to create a standalone
                            executable help file

       [10]ClipBord.zip How to access the Windows clipboard from BASM

    [11]Wordy.zip is a "beat your best score" word game written by Kevin
                                   Baker

    [12]Hapjump.zip is a fun Pente like game also written by Kevin Baker

                              More Free Tools
-more- http://www.users.uswest.net/~sdiggins/samples1.zip

           BASM -- The Free BASIC to 80286 Assembly Language Compiler (p7
of 8)

     [13]Freelink.zip Freeware Microsoft compatible 16-bit object file
                                   linker

            [14]Arrow20.zip Freeware BASM compatible assembler.

              [15]Val.zip Another freeware object file linker

           [16]Lw286.zip Useful Intel 80286 instruction reference

    [17]SmallC22.zip The best Small C distribution that I could find --
                             from James Hendrix

    [18]Tokiwa.zip A small BASIC compiler written in Japan. This one has
                            floating point math.

                   Have a question or comment about BASM?

         __________________________________________________________
         __________________________________________________________
         __________________________________________________________
-more- http://www.users.uswest.net/~sdiggins/freelink.zip

           BASM -- The Free BASIC to 80286 Assembly Language Compiler (p8
of 8)
         __________________________________________________________

                                 Send   Clear
--
=-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
al aab, ex seders moderator                                   sed u soon
               it is not zat we do not see the  s o l u t i o n          
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+



Mon, 27 May 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. BETTER BASIC - old Basic Language Compiler

2. The old Turbo Basic compiler

3. Looking for old, very old basic games

4. Compiler switches for MS Basic Compiler 5.35

5. Old Compiler

6. Want to buy older version of Powerbasic DLL compiler

7. Want old VB compiler to learn on.

8. Looking to purchase old VB compiler and PDQ Comm VBX

9. Looking to purchase old VB compiler and PDQ Comm VBX

10. Looking to purchase old VB compiler and PDQ Comm VBX

11. Old Basic and Visual Basic: compatible?

12. Old Basic and Visual Basic: compatible?

 

 
Powered by phpBB® Forum Software