MS-DOS 6.22 System Error Message Tables File

In Microsoft MS-DOS 6.22, system error message tables are stored directly within the primary command processor file, COMMAND.COM. This article covers how COMMAND.COM organizes and stores these system error strings, the specific memory segment where they reside, and how the operating system handles error reporting without depleting scarce conventional memory.

The Role of COMMAND.COM

In MS-DOS 6.22, the file responsible for storing the system error message tables is COMMAND.COM. While IO.SYS provides hardware interface routines and MSDOS.SYS functions as the core operating system kernel, COMMAND.COM acts as the default command interpreter and user shell.

To conserve the limited 640 KB conventional memory space available in DOS environments, COMMAND.COM is structured into three distinct functional parts:

  1. The Resident Portion: Stays permanently in low conventional memory just above the DOS kernel and installed device drivers. It manages standard terminal I/O, handles critical termination routines (Interrupt 22h and Interrupt 23h), and manages the critical error handler (Interrupt 24h).
  2. The Initialization Portion: Executes during system startup to process the AUTOEXEC.BAT configuration batch file. Once initialization completes, this portion removes itself from memory to release space for other programs.
  3. The Transient Portion: Loads into the highest addresses of conventional memory (just below the 640 KB boundary). This section houses the command processor, the routines for internal commands (such as DIR, COPY, and TYPE), and the system error message tables.

How Error Messages Are Managed in Memory

Because the system error message tables reside in the transient portion of COMMAND.COM, they do not permanently take up space that software applications might need.

When a memory-intensive program requires maximum conventional RAM, MS-DOS allows the application to overwrite the transient portion, including the error tables. Once the application finishes executing, the resident portion of COMMAND.COM performs a checksum verification on the transient area. If it detects that the code or error tables were overwritten, it prompts the user or automatically reloads the transient portion from the disk location specified by the COMSPEC environment variable.

Summary

The standard system error message tables in MS-DOS 6.22 setups are located inside COMMAND.COM. Specifically, they are contained within its transient memory segment, allowing DOS to deliver descriptive system error notices while still freeing up maximum memory for running software.