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-12 12:19
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Help] Read Wengier's article -- DJGPP programs and protected mode View 1,825 Replies 7
Original Poster Posted 2003-05-21 00:00 ·  中国 山东 潍坊 联通
中级用户
★★
Credits 396
Posts 67
Joined 2002-12-03 00:00
23-year member
UID 390
Gender Male
Status Offline
It seems Teacher Wengier really knows this inside out, so let me ask a question here:
What is real mode, and what is protected mode???
Floor 2 Posted 2003-05-22 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Actually, as for real mode and protected mode, the biggest difference is that the former can only directly access memory below 1MB, while the latter is not limited that way.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2003-05-23 00:00 ·  中国 山东 潍坊 联通
中级用户
★★
Credits 396
Posts 67
Joined 2002-12-03 00:00
23-year member
UID 390
Gender Male
Status Offline
Then wouldn't msdos7.0 not be real mode???

I always thought real mode meant a mode that can delete itself (under DOS, can it delete command.com?), while protected mode is a mode that cannot delete itself (like how in win2000 you can't delete win2000's files)!!! Is that right???
Floor 4 Posted 2003-05-23 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Not quite. Real mode is the 16-bit true DOS mode, and protected mode is the 32-bit 386 virtual mode. In the latter, all of the computer's memory can be accessed. But protected mode requires a protected mode server, for example: EMM386, DOS4GW, CWSDPMI, etc.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 5 Posted 2003-05-23 00:00 ·  中国 山东 潍坊 联通
中级用户
★★
Credits 396
Posts 67
Joined 2002-12-03 00:00
23-year member
UID 390
Gender Male
Status Offline
Then by that logic there is no such thing as protected mode in windows!!! Because there is no EMM386, DOS4GW, CWSDPMI, etc. in windows.

(No matter what mode, isn't it all talking about the operating system!!! You might as well just tell me which operating system is which mode) (and also the differences in functions between operating systems in different modes -- for example, whether it can delete itself -- I always feel that when windows gives an error while deleting its own files, that's an expression of protected mode!!! Please clear this up!!!)
Floor 6 Posted 2003-05-23 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
That's not how it works... how could there be no emm386 in win? What wengier said is aimed at dos... it can't be defined the way you put it. If we boot DOS using its three basic core files, then at that point it is real mode DOS. When we load programs such as emm386 or cwsdpmi after booting, DOS then becomes protected mode.... Now that I've put it this way, do you understand?
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 7 Posted 2003-05-23 00:00 ·  中国 山东 潍坊 联通
中级用户
★★
Credits 396
Posts 67
Joined 2002-12-03 00:00
23-year member
UID 390
Gender Male
Status Offline
Yes, I understand now!!!
But I still don't know what the "protection" in protected mode actually looks like, or just how "real" real mode is! Hehe
Floor 8 Posted 2003-05-23 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Windows is of course also a protected-mode DOS program! For example, VMM32, KRNL386, etc. make Windows enter protected mode.

As for the definition of protected mode, have a look here:

"The 80386 has three operating modes: real mode, protected mode, and virtual 8086 mode. This article introduces the 80386 under protected mode and related programming topics. The basic concepts of 80386 registers, addressing modes, and instructions in real mode, unless otherwise specified, are still retained under protected mode.
Although the capabilities of the 80386 in real mode greatly exceed those of its earlier processors (8086/8088, 80186, 80286), only in protected mode can the 80386 truly bring its greater power into play. In protected mode, all 32 address lines are valid, allowing physical address space of up to 4GB to be addressed; the expanded memory segmentation management mechanism and the optional memory paging management mechanism not only provide hardware support for memory sharing and protection, but also provide hardware support for implementing virtual memory; it supports multitasking, enabling fast task switching and protection of the task environment; four privilege levels and a complete privilege checking mechanism can both realize resource sharing and ensure the security and confidentiality of code and data as well as task isolation; it supports virtual 8086 mode, making it convenient to execute 8086 programs."
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Forum Jump: