MS-DOS
MS-DOS was small, direct, and completely trusting. Programs could touch hardware and each other, which made it fast and fragile.
In plain English
MS-DOS is a small house with no locked doors: simple and fast, but anyone can wander in.
By the end you will be able to
- Describe MS-DOS memory and execution model.
- Explain real mode and the 1 MB address space.
- Know the role of the command interpreter and BIOS calls.
- List the main limitations of MS-DOS.
Real mode and direct access
MS-DOS ran on the 8086 in real mode. The CPU could address 1 MB using segment:offset addresses. Programs had direct access to memory and hardware, with no protected address spaces. A buggy program could overwrite the OS or another program, and there was no preemptive multitasking.
segment:offset -> physical = segment * 16 + offset
example: 0x1000:0x0020 -> 0x10020Command interpreter and BIOS
The MS-DOS command interpreter, COMMAND.COM, read commands and launched programs. The BIOS provided low-level services through interrupt calls. The file system was FAT-based. Programs often bypassed the OS and wrote directly to video memory or disk controllers for speed.
Limitations
MS-DOS was single-user and single-tasking. It lacked memory protection, virtual memory, and preemptive scheduling. A crash could take down the machine. Later systems added protected mode and multitasking, but MS-DOS remained important for compatibility and for understanding the early PC model.
Key takeaways
- MS-DOS is single-user, single-tasking, and real-mode.
- Programs access hardware and memory directly.
- There is no memory protection or preemptive multitasking.
- The BIOS and COMMAND.COM provide services and a command line.
- FAT is the file system.
Common pitfalls
- Assuming MS-DOS had protected memory; it did not.
- Confusing real mode with protected mode.
- Thinking the BIOS is part of the kernel; it is firmware.
Kernel notes
- Explain segment:offset addressing.
- List three limitations of MS-DOS.
- Know the roles of COMMAND.COM and the BIOS.
Quick check
1. Which statement describes MS-DOS?
2. How does real mode form a physical address?