BASIC-DOS

A PCjs Retro-Programming Project

Project maintained by jeffpar

BASIC-DOS with a Parallel Port

This IBM PC XT boots the BASIC-DOS Single diskette and runs a single 80x25 console on the Color Display, with its parallel port (LPT1) connected to the Printer pane, which shows everything the machine prints. BASIC-DOS’s printer device, PRN, is LPT1. The PC XT has no clock to keep the date and time, so BASIC-DOS prompts for them at startup, and this page types the current date and time.

Type LPRINT "Hello from LPT1", or enter a few program lines and type LLIST, or run CALENDAR (one of the PC DOS 1.00 samples) and choose a year to print a two-month-per-page calendar. Since the Printer pane is plain text, it shows control characters by name (eg, <ESC> for the escape sequences that CALENDAR sends to IBM’s printer) and the printer’s block graphics characters as asterisks.

IBM PC XT, 640Kb RAM, Hard Disk and Printer

Color Display
Caps
Num
Scroll
Printer
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 .

Press any key at the boot message (or wait 2 seconds) to start the diskette, or press Esc to boot from the hard disk instead.

If there’s no printer (eg, on a machine without a parallel port), LPRINT, LLIST, and PRINT # to PRN report “Device timeout”, as in Microsoft BASIC.

CONFIG.SYS from the BASIC-DOS Single Diskette

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

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