|
; Here is an
annotated CONFIG.SYS file
; You use a beginning semicolon to remark your CONFIG.SYS lines.
; The text stuff that follows each command line is informational only
; and would be illegal in a real CONFIG.SYS or AUTOEXEC.BAT file
; Typically the memory managers come first. HIMEM must
precede EMM386
; The rest should appear in about this order.
;
DEVICE=\DOS\SETVER.EXE
Some programs are designed to work (or not work) under specific versions
of DOS. If the program detects that it is running under a version it doesn't
like it will then refuse to run. SETVER is a DOS program that allows you
to set up the version DOS reports that it is, to any program you want.
If a program named FOOLME is expecting DOS 5.0 and you have DOS 6.0, no
problem. You would just type SETVER FOOLME 5.0. This modifies a table
that SETVER keeps of all the programs that it is fooling! The SETVER code
must be loaded for SETVER to work.
DEVICE=C:\WINDOWS\HIMEM.SYS
Initialize the extended memory manager. This memory manager
must come before any other memory manager
DEVICE=C:\WINDOWS\EMM386.EXE
NOEMS
Initialize the expanded and upper memory manager. The NOEMS
parameter tells the system you don't want to use the EMS features of the
driver. If you want to actually use EMS (you will be simulating EMS in
XMS), then take out the NOEMS and add something like: DEVICE=C:\WINDOWS\EMM386.EXE
1024 RAM - This would simulate 1MB of EMS.
DOS=HIGH,UMB
Send DOS to high memory. Prepares upper memory blocks
DEVICE=C:\CDROM\CDROMDRV.SYS
/D:CDROM001
Load device driver for CD-ROM. Uses CDROM001 as driver signature.
This signature allows the DOS CD-ROM driver (MSCDEX) to identify
one or more devices
DEVICEHIGH=C:\SCAN\SCANNER.SYS
Loads a scanner driver
NUMLOCK=ON
Turns numlock ON or OFF
LASTDRIVE=M
Allows drive letters up to M. Without this command the highest drive letter
available would be E.
;the following
lines deal with memory and files
;and are frequent denizens of CONFIG.SYS files
BUFFERS=13,0
Buffers are used to temporarily store data while it is being
moved from disk to memory – this command creates a sort if pseudo-cache.
This setting gives us 13 512-byte buffers. The second parameter specifies
a secondary buffer. This secondary buffer is a read-ahead buffer, loading
more data than may have been called for. 13 seems to be an optimal buffer
setting. Zero can be used in the second parameter if you are already using
a disk cache like SMARTDRV. Warning - Setting BUFFERS= to more than 20
may cause SMARTDRV to load into conventional memory
STACKS=9,256
The CPU uses stacks to store data when it receives an interrupt.
It "stacks" this data up and then takes data off the stack as needed.
This command specifies that there should be 9 stacks of 256 bytes per
stack. DOS's default is 9,128. A multitasking environment like Windows
3.1 uses more stacks than DOS and not having enough stacks would result
in a "Stack Overflow" message. A stack setting of 1,1 would probably do
this! Using too much stack space results in a loss of precious memory.
Geek alert: Because DOS
was loaded high in an earlier line; this would be the default stacks setting
whether we typed it in or not.
FILES=80
The number of files that DOS can have open at one time each
file specified requires about 50 bytes of memory
NOTE: once you specify
HIMEM, EMM386 and prepare your UMB, you may then use the DEVICEHIGH command
to load any subsequent drivers into upper memory.
|