Mail Archives: djgpp/1997/07/31/00:19:23
Chris Frolik wrote:
>
> Is there ANY way to get the real-mode segment:offset of a variable (or
> block of allocated memory) in DJGPP? I am assuming there is, because:
>
> 1) Every variable must have an address somewhere in memory
> 2) Every address in memory can be accessed using the segment:offset
> notation
wrong. the address space that djgpp has access to is far larger than the
1 Mb that can be addressed in real mode. in protected mode, addresses
consist of a 16-bit selector and a 32-bit offset. there might be a
spurflous similarity between the names, but they are quite different
than real mode seg:off.
you might be better off going to yahoo and searching for info on
protected mode programming pages. i have found quite interesting sites
in the past but i do not have the url's any more.
-- Sinan
- Raw text -