BASIC-DOS

A PCjs Retro-Programming Project

BASIC-DOS is on Twitter Project maintained by jeffpar

BASIC-DOS with a Parallel Port

This IBM PC XT boots the BASIC-DOS 80-Column Demo diskette and runs a single 80x25 session 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.

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 prompt (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.

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