Choosing HIMEM.SYS vs EMM386.EXE for Conventional Memory Optimization in MS‑DOS
Decide whether to load only HIMEM.SYS or combine it with EMM386.EXE to create Upper Memory Blocks, and see how to configure CONFIG.SYS and verify the result.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Decide whether to load only HIMEM.SYS or combine it with EMM386.EXE to create Upper Memory Blocks, and see how to configure CONFIG.SYS and verify the result.
Learn how to bypass the 640KB conventional memory limit in MS-DOS by utilizing HIMEM.SYS and EMM386 to move drivers into the Upper Memory Area (UMA).
Learn how to use IF EXIST and IF ERRORLEVEL in MS-DOS batch to conditionally load network drivers in AUTOEXEC.BAT, with examples, limitations, and verification steps.
The 12-bit FAT table dictates how MS-DOS tracks file clusters, imposes hard partition size limits, and why a single corrupted entry can collapse an entire file chain.
When a DOS program refuses to start with “Insufficient memory” or “Program too big to fit in memory”, the culprit is often conventional memory exhaustion. This guide walks through MEM diagnostics, CONFIG.SYS ordering, and UMB/extended‑memory tricks to reclaim the 640 KB of usable RAM.
Learn how to use the DEVICEHIGH directive in CONFIG.SYS to load device drivers into the Upper Memory Area, freeing conventional memory for DOS programs.
Step-by-step guide to freeing conventional memory in MS-DOS 5.0–6.22 by loading the DOS kernel into the HMA and moving drivers/TSRs into UMBs using HIMEM.SYS and EMM386.EXE. Includes CONFIG.SYS and AUTOEXEC.BAT examples, MEM verification commands, and recovery procedures for boot failures.
MS‑DOS limits programs to 640 KB of conventional memory. By loading HIMEM.SYS and using the XMS interface you can access memory above 1 MB, enabling larger applications and better multitasking. This guide walks through the configuration, usage, and trade‑offs of XMS in a real‑world example.
MS-DOS TSRs achieved background tasks by hooking interrupt vectors and staying resident via INT 21h/31h. This blog explains the mechanism, the non-reentrant kernel's InDOS flag constraint, and includes a minimal assembly example you can run in DOSBox.