Skip to content

The Moving Parts

Outcome: you can name the five parts of a DOSBox setup, and say which part is responsible when something surprises you.

The emulator. The dosbox program itself. It imitates a PC: an x86 processor (translated instruction by instruction), memory in the old layout — 640 KB of conventional memory where programs live, then upper memory, then extended and expanded memory beyond the first megabyte — plus a graphics card, a Sound Blaster, a timer, and a keyboard. Chapter 11 is about the knob that sets how fast this machine pretends to be.

The built-in DOS. DOSBox carries its own small DOS inside it: the command interpreter (the program that shows the prompt and runs your commands), the familiar internal commands — DIR, COPY, TYPE, SET, MEM — and a fictional hard drive, drive Z:, where those tools live. It is compatible, not complete: chapter 8 meets a standard DOS command, PROMPT, that simply is not there. VER reports the arrangement honestly: "DOSBox version 0.74-3. Reported DOS version 5.00" (transcript t01).

Drive Z:. The shelf the built-in DOS keeps its own tools on. Its directory listing (t01) is twelve entries, most showing a theatrical size of 20 bytes: they are not files but doors into the emulator — MOUNT, which attaches your real folders; IMGMOUNT, which attaches disc images; CONFIG, which reads and changes the emulator's settings while it runs; MIXER, for the sound card's levels; KEYB, for keyboard layouts; BOOT, which can start a real DOS from a disc image. You never write to Z:. It is the machine's front panel.

Your folders, mounted as drives. A mount tells DOSBox: "present this real folder as drive C:". From inside, it is a hard disk. From outside, it is still your folder — files DOS programs write appear on your real disk, which is exactly how this guide's lab collected its evidence (chapter 5). Disc images (CD-ROM and floppy) mount the same way through IMGMOUNT.

The configuration file. Everything about the imitation — how much memory, which graphics machine, how fast, what sound card, and which commands run at startup — is written in one text file, dosbox.conf. Chapter 7 takes it apart and proves the settings bite. The startup commands live in its [autoexec] section, and they are the closest thing DOSBox has to the AUTOEXEC.BAT of a real DOS machine.

One part is conspicuously absent: there is no emulated disk for drive C: until you mount something. DOSBox boots happily to Z: alone, which is why every session in this guide begins with a mount.