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-01 02:22
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Can I access 4 GB of memory in real mode like this? Please take a look. View 1,515 Replies 6
Original Poster Posted 2003-02-03 00:00 ·  中国 江苏 南京 鼓楼区 电信
初级用户
Credits 122
Posts 6
Joined 2003-02-03 00:00
23-year member
UID 837
Gender Male
Status Offline
First make sure config.sys has
device=c:\dos\himem.sys
dos=high
But there absolutely must not be a V86-mode manager such as emm386.exe.

Then you can use assembly instructions to read and write 32-bit addresses, in the format segment:32-bit offset, for example
xor ax,ax
mov ds,ax
mov esi,100003h
mov eax,

The execution result is exactly the same as the data at 0FFFFh:13h, proving that what is being accessed is memory above 1M
Floor 2 Posted 2003-02-03 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
HIMEM.SYS in MS-DOS 7.10 can access a very large amount of memory, roughly around 2G-4G.
Wengier - 新DOS时代

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

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

Floor 3 Posted 2003-03-16 00:00 ·  中国 浙江 温州 电信
初级用户
Credits 117
Posts 5
Joined 2003-03-16 00:00
23-year member
UID 1151
Gender Male
Status Offline
I don't think this will work
Floor 4 Posted 2003-08-03 00:00 ·  中国 湖北 武汉 电信
初级用户
Credits 163
Posts 19
Joined 2003-07-20 00:00
23-year member
UID 7192
Gender Male
Status Offline
This definitely won't work
Floor 5 Posted 2003-08-03 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
This does work..
Wengier - 新DOS时代

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

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

Floor 6 Posted 2003-09-10 00:00 ·  中国 河南 郑州 联通
初级用户
Credits 117
Posts 5
Joined 2003-09-10 00:00
22-year member
UID 9664
Gender Male
Status Offline
I don't think it really works either, I recently ran into the same problem
Floor 7 Posted 2003-09-10 00:00 ·  中国 河南 郑州 联通
初级用户
Credits 117
Posts 5
Joined 2003-09-10 00:00
22-year member
UID 9664
Gender Male
Status Offline
Can you post the complete program?
Forum Jump: