From: ao777 AT my-dejanews DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: How can access memory under 1 MB(BIOS information) under 95/98/NT?
Date: Sat, 14 Nov 1998 13:26:15 GMT
Organization: Deja News - The Leader in Internet Discussion
Lines: 103
Message-ID: <72k0dn$83h$1@nnrp1.dejanews.com>
References: <363D8E66 DOT CD0DDE3D AT gmx DOT de>
NNTP-Posting-Host: 209.117.182.6
X-Article-Creation-Date: Sat Nov 14 08:56:52 1998 GMT
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows 95)
X-Http-Proxy: 1.0 proxy2.caucasus.net:3128 (Squid/1.1.22), 1.0 x5.dejanews.com:80 (Squid/1.1.22) for client 209.117.182.28, 209.117.182.6
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
In article <363D8E66 DOT CD0DDE3D AT gmx DOT de>,
djgpp AT delorie DOT com wrote:
>
> --------------FC45C735E917CFD8ADAB54AF
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> 1st.
> How can I get the offset of a variable or a function ?
>
> offset=&variable;
> offset=function or offset=&function
>
> Is this right ?
> 2nd.
> How can I get the size of a function ?
> (with sizeof ????)
> 3rd.
> Why do I have to lock the memory when I want to access a linear address
> ? I mean when this space is swaped to disk and I want to access it with
> a selector and an offset, doesn't the dpmi-server reload it from disk
> automaticly ?
> 4th.
> When I want to copy memory-blocks in the space above 1 MB (in
> assembler), is this the same procedure like in real-mode with the
> difference that I have to store the selectors in the registers where I
> had to store the segments in the real-mode before ?
> 5th.
> Can I have direct access to memory in the space above1 MB without using
> the FAT DS method ?
> 6th.
> Can I have direct access to memory in the space under 1 MB without
> using the FAT DS method ?
> 7th.
> When I map linear memory, what does it mean ? Does it mean that I can
> access this memory-space without a selector because this space is now in
> the available address space of my program ? That would mean that the
> offset of the varaibles and functions to the memory-space descripted by
> the discriptor is changed !!!!
> Or does it mean that I only get a selector to access it ?
> 8th.
> How can I get the physical address when I have a selector and an offset
> (this memory-space is not swaped to disk) ?
> 9th.
> Do the memory-copy-routines - for the protected-mode in Djgpp- move 4
> bytes at one time ?
>
> --------------FC45C735E917CFD8ADAB54AF
> Content-Type: text/html; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
>
> 1st.
>
How can I get the offset of a variable or a function ?
>
>
offset=&variable;
>
> offset=function or offset=&function
>
>
Is this right ?
>
2nd.
>
How can I get the size of a function ?
>
(with sizeof ????)
>
3rd.
>
Why do I have to lock the memory when I want to access a linear address
> ? I mean when this space is swaped to disk and I want to access it with
> a selector and an offset, doesn't the dpmi-server reload it from disk
automaticly
> ?
>
4th.
>
When I want to copy memory-blocks in the space above 1 MB (in assembler),
> is this the same procedure like in real-mode with the difference that I
> have to store the selectors in the registers where I had to store the segments
> in the real-mode before ?
>
5th.
>
Can I have direct access to memory in the space above1 MB without
> using the FAT DS method ?
>
6th.
>
Can I have direct access to memory in the space under 1 MB without
> using the FAT DS method ?
>
7th.
>
When I map linear memory, what does it mean ? Does it mean that I can
> access this memory-space without a selector because this space is now in
> the available address space of my program ? That would mean that the offset
> of the varaibles and functions to the memory-space descripted by
> the discriptor is changed !!!!
>
Or does it mean that I only get a selector to access it ?
>
8th.
>
How can I get the physical address when I have a selector and an offset
> (this memory-space is not swaped to disk) ?
>
9th.
>
Do the memory-copy-routines - for the protected-mode in Djgpp-
> move 4 bytes at one time ?
>
>
> --------------FC45C735E917CFD8ADAB54AF--
>
>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own