How to compile an MBASIC program ???

19 views
Skip to first unread message

Walt Perko

unread,
Jun 15, 2026, 11:06:42 AM (9 days ago) Jun 15
to Altair 8800
Hi,  

After looking for how to online I followed the instructions and this is the results:  

D0>DIR

D: BASCOM   REL : BRUN     COM : BCLOAD       : BASLIB   REL

D: L80      COM : BASCOM   COM : BASRUN   COM : BASRUN   REL

D: CREF80   COM : DEMO     BAS : LD80     COM : LIB80    COM

D: M80      COM : DTERM2   BAS

D0>

D0>BASCOM DTERM2, DTERM2 = DTERM2.BAS

 

D0>

 

D0>L80 DTERM2, DTERM2 /N /E

 

D0>LS

Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes

BASCOM  COM   34K | BASRUN  REL   26K | DEMO    BAS    2K | LIB80   COM    6K

BASCOM  REL   48K | BCLOAD         2K | DTERM2  BAS    2K | M80     COM   20K

BASLIB  REL   26K | BRUN    COM   16K | L80     COM   12K

BASRUN  COM   16K | CREF80  COM    6K | LD80    COM   18K

14 File(s), occupying 234K of 296K total capacity

36 directory entries and 48K bytes remain on D:

D0>


Walt Perko

unread,
Jun 15, 2026, 12:18:56 PM (9 days ago) Jun 15
to Altair 8800

Hi,

 I’ve tried it a few times.  All those BASCOM files I downloaded from Mike’s website to have a nice clean BASCOM.dsk  …  Nothing seems to work ???

D0>LS
Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes
BASCOM  COM   34K | BASRUN  REL   26K | DEMO    BAS    2K | LIB80   COM    6K
BASCOM  REL   48K | BCLOAD         2K | DTERM2  BAS    2K | M80     COM   20K
BASLIB  REL   26K | BRUN    COM   16K | L80     COM   12K
BASRUN  COM   16K | CREF80  COM    6K | LD80    COM   18K
14 File(s), occupying 234K of 296K total capacity
36 directory entries and 48K bytes remain on D:
D0>

D0>BASCOM DTERM2.BAS

That went nowhere …

D0>DIR
D: BASCOM   REL : BRUN     COM : BCLOAD       : BASLIB   REL
D: L80      COM : BASCOM   COM : BASRUN   COM : BASRUN   REL
D: CREF80   COM : DEMO     BAS : LD80     COM : LIB80    COM
D: M80      COM : DTERM2   BAS
D0>

D0>BASCOM DTERM2, DTERM2 = DTERM2.BAS

D0>

D0>L80 DTERM2, DTERM2 /N /E

D0>LS
Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes
BASCOM  COM   34K | BASRUN  REL   26K | DEMO    BAS    2K | LIB80   COM    6K
BASCOM  REL   48K | BCLOAD         2K | DTERM2  BAS    2K | M80     COM   20K
BASLIB  REL   26K | BRUN    COM   16K | L80     COM   12K
BASRUN  COM   16K | CREF80  COM    6K | LD80    COM   18K
14 File(s), occupying 234K of 296K total capacity
36 directory entries and 48K bytes remain on D:
D0>

AMON 2.8 by M. Eberhard
RAM: EF00
>BO

56K CP/M 2.2b v1.0
For Altair 8Mb Serial Drive 

A0>D:

D0>LS
Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes
BASCOM  COM   34K | BASRUN  REL   26K | DEMO    BAS    2K | LIB80   COM    6K
BASCOM  REL   48K | BCLOAD         2K | DTERM2  BAS    2K | M80     COM   20K
BASLIB  REL   26K | BRUN    COM   16K | L80     COM   12K
BASRUN  COM   16K | CREF80  COM    6K | LD80    COM   18K
14 File(s), occupying 234K of 296K total capacity
36 directory entries and 48K bytes remain on D:

D0>MBASIC DTERM2

BASIC-80 Rev. 5.21
[CP/M Version]
Copyright 1977-1981 (C) by Microsoft
Created: 28-Jul-81
21048 Bytes free
WANT LOOPBACK TYPE L? ^C
Break in 110

Ok

SAVE "DTERM2.BAS",A

Ok
SYSTEM

D0>LS
Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes
BASCOM  COM   34K | BASRUN  REL   26K | DEMO    BAS    2K | LIB80   COM    6K
BASCOM  REL   48K | BCLOAD         2K | DTERM2  BAS    2K | M80     COM   20K
BASLIB  REL   26K | BRUN    COM   16K | L80     COM   12K
BASRUN  COM   16K | CREF80  COM    6K | LD80    COM   18K
14 File(s), occupying 234K of 296K total capacity
36 directory entries and 48K bytes remain on D:
D0>

D0>LS
Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes
BASCOM  COM   34K | BASRUN  REL   26K | DEMO    BAS    2K | LIB80   COM    6K
BASCOM  REL   48K | BCLOAD         2K | DTERM2  BAS    2K | M80     COM   20K
BASLIB  REL   26K | BRUN    COM   16K | L80     COM   12K
BASRUN  COM   16K | CREF80  COM    6K | LD80    COM   18K
14 File(s), occupying 234K of 296K total capacity
36 directory entries and 48K bytes remain on D:

D0>BASCOM =DTERM2

Back to la la land …


.

Mike Douglas

unread,
Jun 15, 2026, 7:57:15 PM (9 days ago) Jun 15
to Altair 8800
Here's a session compiling, linking and running SAMPLE.BAS that's on the BASCOM.DSK disk image you found on deramp.com.

A>LS

Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes
BASCOM  COM   32K | DUMP    COM    2K | M80     COM   20K | PCPUT   COM    2K
BASLIB  REL   26K | FORMAT  COM    2K | MBASIC  COM   24K | PIP     COM    8K
BCLOAD         2K | L80     COM   12K | MOVCPM  COM   12K | SAMPLE  BAS    2K
BRUN    COM   16K | LIB80   COM    6K | NSWP    COM   12K | STAT    COM    6K
CREF80  COM    4K | LOAD    COM    2K | OBSLIB  REL   48K | SYSGEN  COM    2K
DDT     COM    6K | LS      COM    4K | PCGET   COM    2K
23 File(s), occupying 252K of 296K total capacity
34 directory entries and 44K bytes remain on A:

A>TYPE SAMPLE.BAS
10 PRINT "Sample Compiled BASIC Program"
20 FOR I=1 TO 10
30 PRINT "This is line";I
40 NEXT I

A>BASCOM SAMPLE=SAMPLE

00000 Fatal Error(s)
18630 Bytes Free

A>LS

Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes
BASCOM  COM   32K | DUMP    COM    2K | M80     COM   20K | PCPUT   COM    2K
BASLIB  REL   26K | FORMAT  COM    2K | MBASIC  COM   24K | PIP     COM    8K
BCLOAD         2K | L80     COM   12K | MOVCPM  COM   12K | SAMPLE  BAS    2K
BRUN    COM   16K | LIB80   COM    6K | NSWP    COM   12K | SAMPLE  REL    2K
CREF80  COM    4K | LOAD    COM    2K | OBSLIB  REL   48K | STAT    COM    6K
DDT     COM    6K | LS      COM    4K | PCGET   COM    2K | SYSGEN  COM    2K
24 File(s), occupying 254K of 296K total capacity
33 directory entries and 42K bytes remain on A:

A>L80 SAMPLE,SAMPLE/N/E

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

Data    4000    4216    <  534>

34656 Bytes Free
[4015   4216       66]

A>LS

Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes
BASCOM  COM   32K | FORMAT  COM    2K | MOVCPM  COM   12K | SAMPLE  COM    2K
BASLIB  REL   26K | L80     COM   12K | NSWP    COM   12K | SAMPLE  REL    2K
BCLOAD         2K | LIB80   COM    6K | OBSLIB  REL   48K | STAT    COM    6K
BRUN    COM   16K | LOAD    COM    2K | PCGET   COM    2K | SYSGEN  COM    2K
CREF80  COM    4K | LS      COM    4K | PCPUT   COM    2K
DDT     COM    6K | M80     COM   20K | PIP     COM    8K
DUMP    COM    2K | MBASIC  COM   24K | SAMPLE  BAS    2K
25 File(s), occupying 256K of 296K total capacity
32 directory entries and 40K bytes remain on A:

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

A>


Reply all
Reply to author
Forward
0 new messages