01The requirement: why DOS had to exist
In 1980 the microcomputer world ran on 8-bit processors (Intel 8080, Zilog Z80) and the dominant operating system was Digital Research's CP/M. Thousands of business programs — WordStar, dBase, SuperCalc — were written for CP/M. Then Intel's 16-bit 8086/8088 arrived, able to address 1 MB of memory instead of 64 KB. Hardware was ready; the 16-bit operating system was not: Digital Research's CP/M-86 was running late.
Two customers felt the gap first. Seattle Computer Products (SCP) was selling an 8086 S-100 board from late 1979 with no operating system to run on it. And in 1980 IBM, in a crash project at Boca Raton ("Project Chess"), set out to build a personal computer in about a year using off-the-shelf parts and outside software — including the operating system.
What the operating system had to do
| Requirement | Why it mattered | How DOS answered it |
|---|---|---|
| Run on the Intel 8088 (16-bit, 1 MB address space) | IBM chose the cheaper 8-bit-bus version of the 8086 | Written in 8086 assembly; ran in the CPU's only mode then, real mode |
| Look like CP/M | Software houses had to port their CP/M programs fast | CP/M-style system calls, function numbers, the File Control Block and the A> prompt; translators converted 8080 code to 8086 almost mechanically |
| Fit in a tiny machine | Base IBM PC had 16 KB RAM and single-sided floppies | Small kernel, loaded from a 160 KB 5.25" floppy |
| Better disk handling than CP/M | CP/M's allocation and directory scheme was slow and limited | The File Allocation Table (FAT) borrowed from Microsoft's Stand-alone Disk BASIC |
| Be available now and be cheap | IBM had a fixed launch date | Microsoft licensed an existing OS and adapted it; IBM priced it at US$ 40 |
| Hide hardware details from programs | Same software should run on future machines | Layered design: ROM BIOS → DOS kernel → application programming interface INT 21h |
02Birth: from QDOS to MS-DOS
Tim Paterson at SCP began writing an operating system in April 1980 to sell his company's 8086 board. Internally it was called QDOS — "Quick and Dirty Operating System" — and it was marketed as 86-DOS.
When IBM came to Microsoft (then a languages company selling BASIC) for an OS, Microsoft licensed 86-DOS, hired Paterson, and adapted it for the IBM PC. Just before the PC launched, Microsoft bought the system outright — and crucially kept the right to license it to other manufacturers. IBM sold its copy as PC DOS; Microsoft licensed MS-DOS to every clone maker. When Compaq and others built IBM-compatible PCs, each one needed MS-DOS. That licence is what made Microsoft.
SCP later sued Microsoft, claiming the IBM connection was hidden during the purchase; the case was settled for close to US$ 1 million.
03Technology inside DOS
Layered structure
Programs were supposed to call only INT 21h. For speed, many wrote straight to video memory or the hardware ports — which is why "100 % IBM compatible" became the test every clone had to pass.
Key technologies
| Element | What it was |
|---|---|
| Language | 8086 assembly; later versions mixed in C |
| CPU mode | Real mode only: segment:offset addressing, 1 MB limit, no memory protection, no multitasking |
| API | Software interrupt INT 21h with function number in register AH |
| File system | FAT12 → FAT16 (3.0) → large FAT16 (4.0) → VFAT long names (7.0) → FAT32 (7.1); 8.3 file names; drive letters A:, B:, C: |
| Programs | .COM (single 64 KB segment, CP/M heritage) and .EXE (relocatable, "MZ" header after Mark Zbikowski) |
| Configuration | CONFIG.SYS (drivers, buffers) and AUTOEXEC.BAT (start-up script) — from 2.0 |
| Extensibility | Installable device drivers (2.0); TSR "terminate and stay resident" programs for pop-ups, mouse, network |
| Automation | Batch files: IF, GOTO, FOR, %1 parameters, ERRORLEVEL |
04The 640 KB problem
The 8088 could address 1 MB. IBM reserved the top 384 KB for video memory and ROM, leaving 640 KB of "conventional memory" for DOS and programs. In 1981 that was enormous; by 1988 spreadsheets and CAD needed far more. A decade of DOS history is the story of working around this wall. Tap a block to read about it.
| Workaround | Year | Idea |
|---|---|---|
| EMS (LIM 3.2/4.0) | 1985/87 | Lotus–Intel–Microsoft "bank switching": a 64 KB window in upper memory pages in data from an add-on memory board |
| XMS / HIMEM.SYS | 1988 | Standard way to use memory above 1 MB on 286/386 machines |
| DOS=HIGH, UMB | 1991 (DOS 5) | Load DOS itself into the HMA and drivers into unused upper-memory gaps with EMM386 — freeing ~600 KB for programs |
| DOS extenders | late 1980s | Switch the CPU into protected mode while a program runs (e.g. DOS/4GW used by Doom), return to DOS for file I/O |
| MemMaker | 1993 (DOS 6) | Automatic tuning of CONFIG.SYS to squeeze conventional memory |
05Version explorer — each version answered new hardware
Click a version. Blue chips are stand-alone DOS; amber chips are DOS hidden inside Windows 9x.
06What people actually ran on DOS
An operating system succeeds through its applications. DOS's "killer apps" made the IBM PC a business tool:
| Category | Key programs (first DOS release) | Why it mattered |
|---|---|---|
| Spreadsheet | VisiCalc port (1981), Lotus 1-2-3 (1983), Quattro (1987) | 1-2-3 alone sold PCs; it wrote straight to hardware for speed |
| Word processing | WordStar (CP/M port), WordPerfect 4.2/5.1 (1986/89), MS Word for DOS (1983) | WordPerfect 5.1 became the office standard of its time |
| Database | dBase II/III (1983/84), Clipper, FoxPro | The first generation of small-business accounting and inventory systems |
| Programming | BASICA/GW-BASIC, Turbo Pascal (1983), Turbo C, MASM, QuickBASIC | Cheap fast compilers created a generation of PC programmers |
| Engineering | AutoCAD (1982), early FEA and data-acquisition packages | CAD moved from mainframes to the desk |
| Utilities | Norton Utilities (1982), Norton Commander (1986), PKZIP (1989) | Filled gaps DOS itself left open |
| Games | Flight Simulator (1982), King's Quest, Prince of Persia, Doom (1993) | Pushed sound cards, VGA and DOS extenders |
07Contemporaries — who else was on the field
| System | Maker | Years | Relation to DOS | Fate |
|---|---|---|---|---|
| CP/M-86 | Digital Research | 1981–mid 80s | The OS IBM originally wanted; offered with the PC at US$ 240 | Lost on price and timing; evolved into Concurrent DOS |
| UCSD p-System | SofTech | 1981–mid 80s | Third launch option: portable "p-code" virtual machine | Too slow and costly; faded |
| PC DOS | IBM | 1981–1998 | IBM's own branded DOS; split from MS-DOS after 5.0 | PC DOS 6.1, 6.3, 7.0, PC DOS 2000; ended |
| DR-DOS | Digital Research → Novell → Caldera | 1988–late 90s | Clone that often led: memory management, task switching, compression before MS-DOS | Squeezed by Windows bundling; antitrust case settled in 2000 |
| Xenix / Unix | Microsoft, SCO, AT&T | 1980 → | Microsoft's own multi-user OS; DOS 2.0 borrowed its directory tree and file handles | Unix ideas live on in Linux and macOS |
| Apple ProDOS / Mac OS | Apple | 1983/1984 → | Mac (1984) showed a graphical desktop while DOS had a prompt | Mac OS evolved into macOS |
| AmigaOS, Atari TOS | Commodore, Atari | 1985–1990s | Pre-emptive multitasking (Amiga) and GUI on cheap hardware | Died with their hardware platforms |
| DESQview, GEM, Windows 1–3.x | Quarterdeck, DR, Microsoft | 1984–1995 | Ran on top of DOS adding windows and multitasking | Windows 3.x won; became the main way DOS PCs were used |
| OS/2 | IBM + Microsoft | 1987–2006 | Planned protected-mode successor to DOS | Microsoft left for Windows NT; IBM continued then ended it |
08Decline and retirement
DOS's weaknesses were built into its brief: single user, single task, no memory protection, 640 KB, 8.3 file names, real mode. The 386 processor (1985) could do protected mode, virtual memory and multitasking — DOS could not use any of it without bolt-ons.
1990–92→ Windows 95/98/ME
DOS 7–8 hidden as boot loader→ Windows XP (NT kernel)
Oct 2001 — no DOS underneath
- 1994: MS-DOS 6.22 — last version sold on its own.
- 1995–2000: DOS 7.0, 7.1 and 8.0 exist only inside Windows 95, 98 and ME, mainly to boot Windows and run old programs.
- 31 Dec 2001: Microsoft ends support for MS-DOS (with Windows 3.x and Windows 95). The DOS components of Windows 98/ME were supported until July 2006.
- Windows NT/2000/XP and later: DOS programs run in an emulated "NT Virtual DOS Machine" (NTVDM) — present only in 32-bit Windows, up to 32-bit Windows 10. 64-bit Windows and Windows 11 cannot run DOS programs natively.
09Replacements and successors
| DOS role | Replaced by |
|---|---|
| Operating system for PCs | Windows 95/98/ME (transition) → Windows NT, 2000, XP … Windows 11; Linux on the same hardware |
The command prompt COMMAND.COM | cmd.exe (Windows NT, 1993) → PowerShell (2006) → Windows Terminal (2019) |
| Batch files | .cmd scripts, PowerShell, Python |
| FAT on hard disks | NTFS (Windows), ext4 (Linux); FAT32/exFAT survive on USB sticks and SD cards |
| Running old DOS software | DOSBox (2002 →), PCem/86Box, virtual machines |
| A real DOS for new work | FreeDOS — free, open-source, MS-DOS compatible; started 1994, version 1.4 released April 2025 |
10Legacy you still use every day
- Drive letters — your Windows disk is
C:because A: and B: were floppies. - Backslash paths —
\because/was already taken for command switches in DOS 1. - Reserved names — you still cannot name a Windows file
CON,PRN,AUXorNUL. - CR+LF line endings in Windows text files (inherited via CP/M).
- FAT32 / exFAT on every camera card and USB stick.
- Commands
dir,copy,cd,del,renstill work in cmd.exe.
Source code is public. Microsoft gave MS-DOS 1.25 and 2.0 source to the Computer History Museum in 2014, put them on GitHub in 2018, and in April 2024, together with IBM, released MS-DOS 4.00 under the MIT licence.
Still at work. DOS and FreeDOS still run embedded controllers, legacy test-rig PCs, CNC machines and BIOS-flashing tools, because a single-tasking OS gives a program complete, predictable control of the hardware — useful for timing-critical data acquisition.
11Try the prompt
A small simulation of a DOS 6.22 session. Type a command and press Enter, or tap a chip.
12Lessons for engineers
- "Good enough and available" beats "best but late". CP/M-86 was arguably the better product; it arrived later and cost six times more.
- Compatibility is a moat — and a cage. CP/M-likeness brought software quickly; the same backward compatibility chained DOS to real mode for 20 years.
- Own the licence, not the hardware. IBM owned the PC design; Microsoft owned the software every clone needed.
- Abstractions leak under performance pressure. Programs bypassed INT 21h for speed, which froze the hardware design of the PC.
- Successors arrive as layers first. Windows began as a program on DOS before replacing it — a pattern we will see again in this series.
Sources & further reading
- Computer History Museum — Microsoft MS-DOS early source code (2014)
- Microsoft Open Source Blog — Open sourcing MS-DOS 4.0 (2024)
- GitHub — microsoft/MS-DOS (sources of 1.25, 2.0, 4.0)
- Wikipedia — 86-DOS · MS-DOS
- The Register — MS-DOS turns 30 (2011)
- FreeDOS — FreeDOS 1.4 release announcement (2025)
- Tim Paterson, interview in Softalk (1983); Microsoft Support Lifecycle records.