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-06-30 03:41
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » What exactly is the difference between DEVICE and DEVICEHIGH in Config.sys? View 1,064 Replies 4
Original Poster Posted 2006-03-29 17:07 ·  中国 浙江 宁波 慈溪市 电信
初级用户
Credits 157
Posts 13
Joined 2005-01-22 00:00
21-year member
UID 35538
Gender Male
Status Offline
What exactly is the difference between DEVICE and DEVICEHIGH in Config.sys?
Sometimes DEVICE= is used, sometimes DEVICEHIGH is used. I don't know when to use DEVICE= and when to use DEVICEHIGH. Also, which one should be used before HIMEM.SYS? And if SMARTDRV.EXE is added in autoexec.bat, does HIMEM.SYS have to be added in Config.sys? Thanks in advance for the reply!

[ Last edited by mxfsun on 2006-3-29 at 17:14 ]
Floor 2 Posted 2006-03-29 17:48 ·  中国 上海 黄浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
device only loads the device driver into conventional memory, while devicehigh loads it into upper memory. Of course, there is a prerequisite: you must already have upper memory space made available. If you haven't made it available, or if the available space has run out, it doesn't matter if you use the devicehigh statement—it just won't go up there and will still be loaded into conventional memory.
Because smartdrv must use XMS as the disk buffer, XMS space must already be made available before using it. DOS's built-in extended memory manager is himem.sys; you can also replace it with another third-party memory manager such as qemm386.sys. In short, as long as it can provide XMS, that's fine.
Floor 3 Posted 2006-03-30 09:03 ·  中国 浙江 宁波 慈溪市 电信
初级用户
Credits 157
Posts 13
Joined 2005-01-22 00:00
21-year member
UID 35538
Gender Male
Status Offline
Then how should I enable XMS? Thanks for the reply!
Floor 4 Posted 2006-03-30 11:12 ·  中国 上海 黄浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
? Haven't I already answered it: “DOS's built-in extended memory manager is himem.sys; you can also replace it with another third-party memory manager such as qemm386.sys”

device=[d:\path\]himem.sys
or
device=[d:\path\]qemm386.sys

The part in square brackets is optional; you should write it yourself according to your actual path. Of course, these two memory managers have many parameters as well, but generally the defaults will work normally.
Floor 5 Posted 2006-03-31 00:06 ·  中国 广东 中山 电信
高级用户
★★★
Credits 972
Posts 420
Joined 2004-05-16 00:00
22-year member
UID 24467
Gender Male
Status Offline
It means enabling UMB
平生进退如飙风
Forum Jump: