MSDOS.SYS Role in MS-DOS 6.22 Initialization
In MS-DOS 6.22, MSDOS.SYS acts as the primary operating
system kernel, serving as the functional core that bridges low-level
hardware routines and user applications. Loaded immediately after the
basic I/O system, it initializes vital internal operating system
structures, establishes the standard DOS Application Programming
Interface (API), and prepares the computer to execute system
configuration directives and the command interpreter.
The Binary Kernel of MS-DOS 6.22
Unlike the plain-text configuration file of the same name used later
in Windows 95 and 98, MSDOS.SYS in MS-DOS 6.22 is a
compiled binary file marked with Hidden, System, and Read-Only
attributes. It contains the actual operating system code, known as the
DOS kernel.
Sequence in the Boot Process
During the boot sequence, the computer’s ROM BIOS loads the Volume
Boot Record, which in turn loads IO.SYS into memory. Once
IO.SYS performs preliminary hardware checks and initializes
default device drivers, its primary job is to locate and execute
MSDOS.SYS.
Key Initialization Responsibilities
Upon receiving control from IO.SYS,
MSDOS.SYS performs several essential initialization
routines:
- Interrupt Vector Setup: It hooks and initializes core software interrupts, most notably Interrupt 21h (INT 21h). This provides programs with the standardized DOS API for file input/output, process execution, and hardware interaction.
- Internal Data Structures: It creates and allocates internal operating system tables, including File Control Blocks (FCBs), System File Tables (SFTs), and Drive Parameter Blocks (DPBs) to track connected storage drives.
- Memory Management Initialization: It establishes the base memory structures, building the initial Memory Control Block (MCB) chain that governs conventional RAM allocation for subsequent drivers and applications.
- Device Coordination: It links the system's
character devices (such as
CON,PRN, andAUX) and block devices (floppy and hard disk drives) to the internal file system logic.
Handoff to User Space
After establishing the internal data tables and interrupt handlers,
MSDOS.SYS works in conjunction with IO.SYS to
parse CONFIG.SYS, loading specified third-party device
drivers and memory managers (such as HIMEM.SYS). Once
hardware configuration is complete, control is relinquished to the
command interpreter specified by the system—typically
COMMAND.COM—which runs AUTOEXEC.BAT and
presents the user with the command prompt.