China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-14 05:32
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Share] Explanation of the Configuration File of the config System View 31,233 Replies 243
Floor 61 Posted 2003-06-07 00:00 ·  中国 湖北 荆州 电信
初级用户
Credits 108
Posts 2
Joined 2003-06-07 00:00
23-year member
UID 4230
Gender Female
Status Offline
Good post
Floor 62 Posted 2003-06-07 00:00 ·  中国 湖北 武汉 江夏区 电信
中级用户
★★
Credits 327
Posts 69
Joined 2002-12-01 00:00
23-year member
UID 377
Gender Male
Status Offline
Not bad! Support!
Floor 63 Posted 2003-06-08 00:00 ·  中国 北京 腾讯云
初级用户
Credits 115
Posts 3
Joined 2003-06-08 00:00
23-year member
UID 4344
Gender Male
Status Offline
Looks like Master Rushi has really studied DOS in depth.
Floor 64 Posted 2003-06-08 00:00 ·  中国 湖北 武汉 蔡甸区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Let’s continue talking about memory. How do we get more conventional memory under DOS? As mentioned earlier, most programs in a DOS environment run in conventional memory. If a certain program fails to run because of insufficient memory, the most common problem is a lack of conventional memory. So today we’ll introduce several ways to free as much conventional memory as possible:
1. When the system is configured with extended memory, most of DOS and the resident portion of Command.com can be installed in the High Memory Area (HMA). This requires the following commands in config.sys:       
  device=Himem.sys
  dos=high

  Although Himem.sys itself also occupies a small amount of conventional memory, using HMA will save us more conventional memory overall. Also, in versions above msdos7, we can use devicehigh=himem.sys to place Himem.sys in upper memory. We have already discussed the special dos command in the config file earlier. Here I’ll just briefly talk about Himem.sys.
Himem.sys manages the use of expanded memory and the High Memory Area (HMA). This device driver is configured in the config file through the device command. If we use expanded memory and high memory, then the device command installing Himem.sys must come before the installation of any other driver.
Its general command format is:
device=Himem.sys /options
Options:
hmamin=an integer from 0 to 63, default value 0
This option specifies the amount of conventional memory DOS must use before Himem.sys uses HMA (the high memory area). The unit is KB.
numhandles=an integer from 1 to 128, default value 32
This option specifies the maximum number of EMB (expanded memory block) handles DOS can use simultaneously. Each handle occupies 6 bytes of conventional memory.
int15=an integer from 64 to 65535, default value 0
This option specifies the amount of expanded memory allocated by interrupt 15h. To ensure enough memory is available, this value must be greater than 64.
machine: code corresponding to the A20 handler. (I’m not very clear on this option either)
The A20 handler is probably a kind of microcomputer component that can access the high memory area...
a20 control: on/off
This option specifies whether Himem.sys obtains control of the A20 handler. The default value is on.
shadowram: on/off
This option specifies whether Himem.sys disables the RAM portion of ROM (read-only memory).
cpuclock: on/off
This option is used to specify whether Himem.sys affects the clock speed of the CPU....
DOS only allows one program to use the high memory area at the same time. If we do not specify /hmamin=xxx, then Himem.sys reserves HMA for the first program that needs it..
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 65 Posted 2003-06-09 00:00 ·  中国 广东 广州 番禺区 电信
初级用户
Credits 116
Posts 3
Joined 2003-06-06 00:00
23-year member
UID 3884
Gender Male
Status Offline
DOS really is broad and profound! It’s a bit hard to learn.
Floor 66 Posted 2003-06-09 00:00 ·  中国 广西 柳州 联通
初级用户
夜猫
Credits 109
Posts 2
Joined 2003-06-06 00:00
23-year member
UID 4006
Gender Male
Status Offline
This is pretty good.
Floor 67 Posted 2003-06-09 00:00 ·  中国 黑龙江 哈尔滨 联通
高级用户
★★
Credits 830
Posts 233
Joined 2002-11-29 00:00
23-year member
UID 364
Gender Male
Status Offline
I forgot where I saw this, let me add a bit more! It was from some software called Learning Memory, seems a bit old! But just treat it as reference material!
RAM is memory in the conventional sense, the kind we use now!
To put it plainly, ROM is a block of memory used by the BIOS that can be erased and written by special methods!
It also talked about real mode, protected mode, and V86 mode here, as well as their addressing methods! I’m not going to type all that out, if you’re curious, go find materials and read them yourselves!
0~~640 is called main memory or conventional memory!
640~~1024 is called upper memory!
Above 1024 is called extended memory!
1024~~1088 is called high memory!

Conventional memory!
When DOS boots, it occupies about 56K of memory! The other 579K is for user use! Of course we can use other software to use memory greater than 640K! Otherwise how would my current dual-channel DDR fit in here!
Upper memory
This area is reserved for BIOS and hardware interfaces! This 384K memory is attached to the video ROM and video RAM on the graphics card, as well as some controller cards?! Applications cannot directly access data in this area! This is why computers have the 640K memory limitation! Applications can only use conventional memory! Also: 160K of upper memory is unused! A monochrome display can use even more (>160K), and it can be used through a manager! This place is what Master Rushi called (upper memory blocks)
abbreviated UMB! It is memory usable on machines from the 80386 onward!
Extended memory
Located above 2 to the 20th power, beyond the 8086 addressing range, so it can only be used on machines after the 80286!
Since DOS can only manage 640K of memory, this area can only be indirectly managed through an extended memory manager conforming to the XMS specification!
XMS is an extended memory manager standard jointly drafted by intel; louts; ms; ast4. It defines the standard interface for determining memory access to extended memory, HMA, and upper memory, with the goal of avoiding conflicts caused by programs randomly accessing this area! himem.sys and emm386.exe both conform!… In other words, we can only use software like this to manage extended memory!
(Typing is exhausting! I originally thought there wasn’t much, but after checking just now! I still have 15 pages of my handwritten notes to type out! I’ll take a break and come back to do it! There’s too much included! I wonder if it’s useful!? Moderators, please take a look! If it’s not useful, then I won’t bother doing it! )
┃ \\\\//// ┃通缉:杨小邪 特点:贼丑
┃ (-●●-) ┃年龄:刚成年 性别:男
┃ \ / ┃罪名:长的丑/总想见网友
┃ \︶/ ┃犯罪事实:吓死一片~
Floor 68 Posted 2003-06-10 00:00 ·  中国 北京 朝阳区 联通
初级用户
Credits 153
Posts 11
Joined 2003-06-06 00:00
23-year member
UID 3906
Gender Male
Status Offline
Default value
What is it?
Floor 69 Posted 2003-06-10 00:00 ·  中国 北京 朝阳区 联通
初级用户
Credits 153
Posts 11
Joined 2003-06-06 00:00
23-year member
UID 3906
Gender Male
Status Offline
Its general command format is:
FILES=(an integer between 8 and 255), its default value is 8
FCBS=(an integer between 1 and 255), (an integer between 0 and 255), default values are 40, 0
(For FCBS=) the number before must be greater than the number after.
The number before must be greater than the number after.
I don’t understand.
Floor 70 Posted 2003-06-10 00:00 ·  中国 湖北 武汉 硚口区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Default value means the setting DOS uses automatically for the corresponding item when you do not set the above statement in the config file. It is done automatically by DOS.


弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 71 Posted 2003-06-11 00:00 ·  中国 上海 浦东新区 电信
初级用户
Credits 137
Posts 9
Joined 2002-11-12 00:00
23-year member
UID 230
Gender Male
Status Offline
Hehe~~ okay, I’ll absorb it slowly. Is there more?
Floor 72 Posted 2003-06-11 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Yes, yes, more is coming right away..
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 73 Posted 2003-06-11 00:00 ·  中国 广东 珠海 教育网
初级用户
★★
DOS爱好者
Credits 478
Posts 100
Joined 2003-04-22 00:00
23-year member
UID 1648
Gender Male
Status Offline
The following is quoted from Master Rushi on 2003-6-7 14:59:00:
Baizi asked about DOS memory. Generally, DOS memory is closely related to the config file. So I’ll talk about it here........


The moderator is just too good

|||||||  寻人启示:姓名:
| c●● ~年龄:20,性别:男
|  ♂▃~ 特征:帅.很帅.酷.特别酷....
| |︺英俊潇洒.风流倜傥,玉树临风→我

单钓E时代论坛
Floor 74 Posted 2003-06-13 00:00 ·  中国 江苏 南京 教育网
初级用户
Credits 123
Posts 4
Joined 2003-06-04 00:00
23-year member
UID 3516
Gender Male
Status Offline
Floor 75 Posted 2003-06-15 00:00 ·  中国 上海 浦东新区 电信
初级用户
Credits 124
Posts 3
Joined 2003-06-14 00:00
23-year member
UID 5142
Gender Female
Status Offline
Why is it that when I open my msconfig.sys I can’t see anything at all?
The contents are as follows:
rem
rem *** DO NOT EDIT THIS FILE! ***
rem
rem This file was created by the System Configuration Utility as
rem a placeholder for your CONFIG.SYS. Your actual CONFIG.SYS
rem file has been saved under the name CONFIG.TSH.
rem
Question for the experts!
‹ Prev 1 3 4 5 6 7 17 Next ›
Forum Jump: