Compiling a stand alone program using BASCOM 5.3

General discussions related to the Altair 8800 Clone

Compiling a stand alone program using BASCOM 5.3

Postby gmh » March 22nd, 2015, 1:50 pm

Hi all,

I've read the supplied BASCOM 5.3 documentation, and searched the web but can't seem to get a file to compile as a stand alone program. Whenever I use the /O switch my programs still say BRUN.COM is missing.

Can someone please give me a heads up in regards to which switches to throw at L80.COM?

Thanks heaps!
gmh
 
Posts: 38
Joined: August 12th, 2014, 5:19 am

Re: Compiling a stand alone program using BASCOM 5.3

Postby toml_12953 » March 22nd, 2015, 4:36 pm

You do have BRUN.COM on the same disk as the compiled COM file, right? It has to be on the same disk.
toml_12953
 
Posts: 297
Joined: June 7th, 2013, 12:54 pm

Re: Compiling a stand alone program using BASCOM 5.3

Postby gmh » March 22nd, 2015, 4:45 pm

Hi,

Thanks for your reply but I'm trying to construct a standalone COM file that doesn't require BRUN.COM. According to the supplied test files I need to use the /O flag, but as mentioned originally I can't get it to actually work as expected.

Code: Select all
/O        (Newer versions only).  Tells the compiler to  construct a stand-
          alone program instead of one  requiring presence of the  BRUN.COM
          runtime module.  This generates much bigger programs because  all
          of the runtime routines must be included.

Thanks
gmh
 
Posts: 38
Joined: August 12th, 2014, 5:19 am

Re: Compiling a stand alone program using BASCOM 5.3

Postby AltairClone » March 22nd, 2015, 5:03 pm

Given a basic program saved in ASCII called SAMPLE.BAS:

Code: Select all
A>BASCOM SAMPLE=SAMPLE/O

00000 Fatal Error(s)
25542 Bytes Free

A>L80 SAMPLE,SAMPLE/N/E

Link-80  3.44  09-Dec-81  Copyright (c) 1981 Microsoft

Data    0103    2537    < 9268>

34554 Bytes Free
[0118   2537       37]

A>SAMPLE
Sample Compiled BASIC Program
This is line 1
This is line 2
This is line 3
This is line 4
This is line 5
This is line 6
This is line 7
This is line 8
This is line 9
This is line 10
AltairClone
Site Admin
 
Posts: 632
Joined: April 5th, 2013, 10:55 am

Re: Compiling a stand alone program using BASCOM 5.3

Postby gmh » March 22nd, 2015, 7:38 pm

Thanks heaps Mike, I was using the flag on L80.COM.
gmh
 
Posts: 38
Joined: August 12th, 2014, 5:19 am


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 18 guests

cron