Compiling a stand alone program using BASCOM 5.3

General discussions related to the Altair 8800 Clone
Post Reply
gmh
Posts: 38
Joined: August 12th, 2014, 5:19 am
Contact:

Compiling a stand alone program using BASCOM 5.3

Post by gmh »

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!
toml_12953
Posts: 305
Joined: June 7th, 2013, 12:54 pm
Contact:

Re: Compiling a stand alone program using BASCOM 5.3

Post by toml_12953 »

You do have BRUN.COM on the same disk as the compiled COM file, right? It has to be on the same disk.
gmh
Posts: 38
Joined: August 12th, 2014, 5:19 am
Contact:

Re: Compiling a stand alone program using BASCOM 5.3

Post by gmh »

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
AltairClone
Site Admin
Posts: 677
Joined: April 5th, 2013, 10:55 am
Contact:

Re: Compiling a stand alone program using BASCOM 5.3

Post by AltairClone »

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
gmh
Posts: 38
Joined: August 12th, 2014, 5:19 am
Contact:

Re: Compiling a stand alone program using BASCOM 5.3

Post by gmh »

Thanks heaps Mike, I was using the flag on L80.COM.
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests