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 15:30
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » How to access a 32-bit address space under DOS? View 1,356 Replies 12
Original Poster Posted 2003-04-28 00:00 ·  中国 北京 联通
初级用户
Credits 109
Posts 2
Joined 2003-04-28 00:00
23-year member
UID 1747
Gender Male
Status Offline
I've recently been making a PCI card, and the BIOS maps it to a space with Baseaddress 40400000.
How can I access (read/write) this block of memory under DOS? I'm using BC31, what should I do? Experts, save me!
Floor 2 Posted 2003-04-28 00:00 ·  中国 湖北 武汉 硚口区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
I don't really understand it, let's wait for wengier to have a look. Just helping you bump the thread.
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 3 Posted 2003-04-29 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
About this, it's best to use assembly for addressing. Using BC may not be very convenient, though I haven't used it either.
Wengier - 新DOS时代

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

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

Floor 4 Posted 2003-04-29 00:00 ·  中国 台湾 远传电信
元老会员
★★★★★
Credits 8,312
Posts 3,551
Joined 2003-03-22 00:00
23-year member
UID 1225
Gender Male
Status Offline
Let me ask, what exactly does assembly mean??
MSN:tiqit2@hotmail.com
Floor 5 Posted 2003-04-29 00:00 ·  中国 北京 联通
初级用户
Credits 109
Posts 2
Joined 2003-04-28 00:00
23-year member
UID 1747
Gender Male
Status Offline
Many thanks to all the seniors, please hurry and teach me a few tricks, I'm almost going crazy from the urgency.
Floor 6 Posted 2003-07-09 00:00 ·  新加坡 星和视界(StarHub)宽带
初级用户
Credits 169
Posts 29
Joined 2003-07-09 00:00
23-year member
UID 6654
Gender Male
Status Offline
In real mode, it's impossible to access that address space. Under bc31, it seems there should also be some kind of 32-bit dpmi host or something similar, so that the program runs in 32-bit protected mode; then the memory address mapping is in flat mode. Just directly define a far pointer pointing to that address, and you can access it. I've done it under watcom c+dos4g/w, but under bc I'm not sure.
Floor 7 Posted 2003-07-10 00:00 ·  中国 台湾 远传电信
元老会员
★★★★★
Credits 8,312
Posts 3,551
Joined 2003-03-22 00:00
23-year member
UID 1225
Gender Male
Status Offline
Using djgpp works too~
djgpp has cwsdpmi~
MSN:tiqit2@hotmail.com
Floor 8 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've run into exactly the same problem too. I don't know whether you got your problem solved or not. If you did, could you tell me? If not, we can discuss it together. My email is feng9842004@yahoo.com.cn
Floor 9 Posted 2005-10-07 22:05 ·  中国 上海 松江区 电信
新手上路
Credits 13
Posts 6
Joined 2005-10-06 13:48
20-year member
UID 43162
Gender Male
Status Offline
You can first turn off GATE A20, then call 1M less memory, but at most you can only access 4G
Floor 10 Posted 2005-10-08 16:03 ·  中国 辽宁 沈阳 联通
高级用户
★★
Credits 739
Posts 111
Joined 2004-11-30 00:00
21-year member
UID 34209
Gender Male
From 辽宁沈阳
Status Offline
Its linear address is 40400000 >> 12 + 0000 = 40400, which is within 1M, so real mode can access it completely.
Floor 11 Posted 2005-10-09 22:36 ·  中国 河北 石家庄 联通
初级用户
Credits 117
Posts 4
Joined 2005-04-23 00:00
21-year member
UID 38497
Gender Male
Status Offline
I've run into the same problem too, and would like to discuss it with you. email: jhbin_1999@126.com
qq:55512153
Floor 12 Posted 2005-10-15 21:20 ·  中国 湖北 襄阳 联通
新手上路
Credits 15
Posts 15
Joined 2005-10-12 18:00
20-year member
UID 43406
Gender Male
From 湖北襄樊
Status Offline
C&C&C&C&C&C+++++++++

非C,勿扰
Floor 13 Posted 2005-10-15 21:22 ·  中国 湖北 襄阳 联通
新手上路
Credits 15
Posts 15
Joined 2005-10-12 18:00
20-year member
UID 43406
Gender Male
From 湖北襄樊
Status Offline
Need to add offset
sorry
C&C&C&C&C&C+++++++++

非C,勿扰
Forum Jump: