www.digitalmars.com         C & C++   DMDScript  

c++.windows.16-bits - What's and how use DOSX?

reply "zhang li" <li stands.3322.org> writes:
Hi

I want to know, if a program has running in real mode, it use 16 bits
registers. such AX, BX...

if I make the programs use 32 bits registers. such EAX, EBX..... at DOSX,
what is the memory address allocate? I can use 16 bits DOS interrupt at 32
bits programs?

now, I don't understand the program how to load to memory? how to get the
address of data?

last, I think the DOSX unlike win32. they are two thing? that is right?

--


regard :)


!!!!!
\*_*/
_\_/_ Your friend li.
Nov 27 2002
parent reply "Walter" <walter digitalmars.com> writes:
"zhang li" <li stands.3322.org> wrote in message
news:as2a58$2hfo$1 digitaldaemon.com...
 Hi

 I want to know, if a program has running in real mode, it use 16 bits
 registers. such AX, BX...

Yes.
 if I make the programs use 32 bits registers. such EAX, EBX..... at DOSX,
 what is the memory address allocate? I can use 16 bits DOS interrupt at 32
 bits programs?

Using DOSX will create a 32 bit program, running in 32 bit protected mode, using the 32 bit registers.
 now, I don't understand the program how to load to memory? how to get the
 address of data?

Just like you would normally: p = &x;
 last, I think the DOSX unlike win32. they are two thing? that is right?

They are two very different things, correct.
Nov 27 2002
parent reply "zhang li" <li stands.3322.org> writes:
16 bits DOS direct memory address map.

-----------------  -> FFFF:0
|ROM BIOS EXPAND
|EMS MAP FRAME
|VIDEO MEMORY MAP  -> B000:0
|----640 KB------  -> A000:0
|
|User Program
|
|system data
-----------------  -> 0:0

What is 32 bits DOSX direct memory address map?


--


regard :)


!!!!!
\^_^/
_\_/_ Your friend li.
Nov 27 2002
parent "Walter" <walter digitalmars.com> writes:
Check out the online documentation at www.dosextender.com


"zhang li" <li stands.3322.org> wrote in message
news:as497r$1qa6$1 digitaldaemon.com...
 16 bits DOS direct memory address map.

 -----------------  -> FFFF:0
 |ROM BIOS EXPAND
 |EMS MAP FRAME
 |VIDEO MEMORY MAP  -> B000:0
 |----640 KB------  -> A000:0
 |
 |User Program
 |
 |system data
 -----------------  -> 0:0

 What is 32 bits DOSX direct memory address map?


 --


 regard :)


 !!!!!
 \^_^/
 _\_/_ Your friend li.

Nov 28 2002