Preserving Microcomputer OSes

A small tribute to Microsoft, Digital Research, IBM, and everyone else who helped shape the early microcomputer era.

Microsoft released the source code for early versions of MS-DOS and for GW-BASIC. CP/M source code is available too. Part of the fun is keeping these systems true to their roots while making them easier to build and modify. Y2K fixes and support for newer hardware and emulators help keep them running today.

CP/M-86 1.1 boots on an IBM PC XT, lists 640 KB of memory, and returns to the D> prompt after reading the BIOS clock.

Timeline of OSes

OS screenshots

Emulators

emu2-cpm86
Jeffrey H. Johnson’s fork of Daniel Serpell’s emu2 runs CP/M-86 and DOS programs in a Unix terminal.
emu2
Daniel Serpell’s emulator runs DOS command-line programs in a Linux terminal.
PCE/ibmpc
Hampa Hug’s IBM PC emulator boots CP/M-86 and DOS disk images.
tnylpo
Georg Brein’s emulator runs CP/M-80 programs under Unix and Linux.
ZXCC
This fork of John Elliott’s ZXCC runs CP/M build tools on a modern host. Use it with HI-TECH C to compile programs for Z80 CP/M.
PCE-286
This fork of Hampa Hug’s PCE adds IBM PC/AT and 80286 emulation.

Project repositories

Operating systems

cpm86-kernel
This rebuild of CP/M-86 1.1 brings Y2K fixes to the IBM PC and XT. On a V20 or V30, the CP/M-816 variant also runs 8-bit CP/M programs.
ccpm86-kernel
Digital Research’s Concurrent CP/M-86 3.1 brought multitasking to the PC. Boot the rebuilt system, switch between consoles, or use PC-MODE to run supported DOS programs alongside native CP/M commands.
cdos41-kernel
This project reconstructs Concurrent DOS from the 4.1 OEM sources and combines fixes from the European 4.11 release with further repairs and enhancements. Its disk images let you explore a multitasking system that reads both CP/M and DOS floppies.
pcdos11-hacking
Boot a rebuilt copy of IBM PC DOS 1.1 or Microsoft DOS 1.25 and explore the source behind the command prompt. A separate Turbo Pascal disk lets you try Borland’s early compiler.
msdos40-kernel
MS-DOS 4.01N is built on Unix with the original MS-DOS 4.01 tools and recreates features from MS-DOS 5.0. Boot it on a PC or in an emulator, then use MEM to check available memory or try the rebuilt interpreter modeled on GW-BASIC 3.23.

Development tools

zxcc-htc
Use HI-TECH Software’s C 3.09 compiler with ZXCC to build C programs for Z80 CP/M on a Unix host. The project patches the compiler driver and extends the runtime and math libraries.
xlt88
Translate 8080 assembly source into 8086 or 8088 assembly for CP/M-86 1.1 or PC DOS 1.0. The output is source you can read, edit, and assemble.
cpm86-crossdev
Run period compilers and assemblers on a Unix host to build software for CP/M-86 and DOS. The collection includes Aztec C, Pascal MT+, and Digital Research Fortran-77.
cpm86-hacking
Explore CP/M-86 through small utilities and graphics demos, from a paged file viewer to a bouncing ball. Helpers also let the guest read the clock or mount a disk in PCE.
cpm86-cmdtools
Inspect a CP/M-86 .CMD executable, extract its code and data, or turn assembler output into a runnable command. These tools let you see exactly what the loader receives.
cpm86-make
Run incremental builds on CP/M-86 1.1, Concurrent CP/M-86, and Concurrent DOS 4.1. The tool queues commands through SUBMIT on CP/M-86 1.1 and launches them directly on the concurrent systems.

Applications and examples

cpm86-speedstart
SpeedStart let a floppy boot straight into an application. This reconstruction recovers the boot code from a 1983 Digital Research Logo demo and uses it to start Microsoft BASIC on an IBM PC or XT.
cpm86-ports
This collection brings classic games, interpreters, and utilities to CP/M-86 with source you can rebuild. Explore a dungeon in Rogue, push crates in Sokoban, or try Lisp at the XLISP prompt.
cpm86-vi
Tim Thompson’s STevie brings full-screen vi editing to CP/M-86 and PC DOS 1.1. On an IBM-compatible PC, the port can drive the display directly through the BIOS.
cpm86-msbasic
MBASIC 5.50B recreates text-mode Microsoft BASIC-86 from the published 1983 GW-BASIC sources. The same source builds interpreters for CP/M-86 and early DOS so you can run the included games or type in your own programs.
cpm86-menu
Launch programs and SUBMIT scripts from a keyboard menu on CP/M-86. On Concurrent CP/M-86, the menu stays resident and returns to your selection when the program exits.

Hacks and patches

Turbo Pascal 3.0
Compile a Turbo Pascal 3.0 program from the CP/M-86 or DOS command line. The patched compiler exits when it finishes bypassing the IDE, so a build script can call it directly.
Digital Research Personal BASIC 1.2
This patch lets you load a program from the CP/M-86 prompt with BASIC HELLO.BAS. Add [R] to run it immediately and return to CP/M-86 on normal completion.
ROM BASIC on the IBM XT
Boot PC XT straight into Microsoft BASIC 5 from ROM with PCE (as IBM implemented with its own IBM PC Basic ROM). Type in a program and save it to the supplied 320 KiB floppy image with a simplified floppy layout