BASIC-DOS

A PCjs Retro-Programming Project

Project maintained by jeffpar

BASIC-DOS on a COMPAQ DeskPro 386 with a Single Console

The machine below is a COMPAQ DeskPro 386 with a 16Mhz 80386 with an 80387, 1Mb of memory (640K of it conventional memory), a VGA Color Display, a 1.2Mb and a 1.44Mb diskette drive, and a 10Mb hard disk. It boots the BASIC-DOS Single diskette and runs a single 80-column console, with DONKEY.BAS (from the PC DOS 1.00 diskette) in its DEMOS directory. The boot sector first displays System starting...; press any key (or wait 2 seconds) to boot from the diskette, or press Esc to boot from the hard disk instead. Like the PC AT, the DeskPro 386 has a battery-powered real-time clock, so BASIC-DOS starts with the current date and time (type DATE or TIME to see them).

COMPAQ DeskPro 386, 1Mb RAM, 80387, 10Mb Hard Disk, VGA

Color Display
Caps
Num
Scroll
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
Esc
1 !
2 @
3 #
4 $
5 %
6 ^
7 &
8 *
9 (
0 )
- _
= +
Back
-
Num
Scroll
Tab
Q
W
E
R
T
Y
U
I
O
P
[ {
] }
↵
7
↑ 8
9
Ctrl
A
S
D
F
G
H
J
K
L
; :
' "
` ~
← 4
5
→ 6
+
Shift
\ |
Z
X
C
V
B
N
M
, <
. >
/ ?
Shift
PrtSc
1
↓ 2
3
Alt
Space
Caps
Ins 0
Del .
Esc
Tab
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
Num
Scroll
1 !
2 @
3 #
4 $
5 %
6 ^
7 &
8 *
9 (
0 )
- _
= +
Back
-
+
Q
W
E
R
T
Y
U
I
O
P
[ {
] }
↵
7
↑ 8
9
A
S
D
F
G
H
J
K
L
; :
' "
` ~
← 4
5
→ 6
\ |
Z
X
C
V
B
N
M
, <
. >
/ ?
Shift
PrtSc
1
↓ 2
3
Ctrl
Shift
Alt
Space
Caps
Ins 0
Del .

Use the MEM command to display current memory usage.

Additional hardware options:

The BASIC-DOS Single diskette’s CONFIG.SYS doesn’t define any consoles, so BASIC-DOS creates a single 80-column, 25-row console, running COMMAND.COM, which runs HELLO.BAT to display a colorful greeting. Type HELP for a list of commands, DIR to list the files on the diskette, and PRIMES.BAS to run the BASIC version of PRIMES. The machines have a math coprocessor, which FPUTESTS (in TESTS) tests with every FPU$ function.

BASIC Samples

The diskette’s DEMOS directory contains a text copy of DONKEY.BAS, one of the BASIC samples from the IBM PC DOS 1.00 diskette, and CONFIG.SYS sets PATH$ so that it can be run from any directory. To try it, type DONKEY, press the space bar to switch lanes, and press ESC to exit. When DONKEY ends, BASIC-DOS restores the original display mode. See the DONKEY.BAS checklist in the Project Status for what was needed to run it.

The machines also have the PC DOS 1.00 diskette in drive B:, whose original copies of DONKEY.BAS and the other samples are in the tokenized format that IBM BASIC saves; BASIC-DOS can load and run those, too (eg, B:DONKEY or B:CIRCLE), although not all of them run yet. Text copies of all the samples are in the TESTS\SAMPLES directory of the 10Mb hard disk.

For comparison, MSBASIC (built from Microsoft’s GW-BASIC sources) is on the BASIC-DOS Tests diskette, in its TOOLS directory, so you can load that diskette in drive B:, type CD DEMOS, and then B:\TOOLS\MSBASIC DONKEY, for example, to run the same program the conventional way, and then type SYSTEM to return to BASIC-DOS.

DONKEY.BAS, the game that Bill Gates and Neil Konzen wrote for the IBM PC in 1981, was the first BASIC sample from the PC DOS 1.00 diskette that BASIC-DOS was able to load and run to completion. BASIC-DOS doesn’t interpret BASIC at all: it compiles each program into native 8086 code before running it, and its graphics statements write directly to video memory, so it runs them with better overall performance than BASICA, GW-BASIC, and other more conventional BASIC interpreters (see Performance). BASIC programs are also just another kind of command, run directly from the DOS prompt, alongside COM, EXE, and BAT files.

CONFIG.SYS from the BASIC-DOS Single Diskette

REM Demonstration of a single-console configuration
SESSIONS=3
SHELL=COMMAND.COM PATH$="A:\;A:\EXT\CMD;A:\EXT\BAS;A:\DEMOS;A:\TESTS" : HELLO

Copyright (c) 2020-2026 Jeff Parsons Released under MIT License