Mail Archives: djgpp/1998/05/08/05:47:30
On 8 May 1998, Fist1000 wrote:
> What is the math to nab the segment and offset from a protected-mode address?
None. Real-mode seg:off addresses cannot address more than the first 1MB
of memory (they only have 20 bits).
I suspect that you need this to call some real-mode service which needs
an address of a buffer. If so, please read sections 18.2 and 18.4 of the
DJGPP FAQ list (available as v2/faq210b.zip from the same place you get
DJGPP). It explains how to do these things from DJGPP programs, since
that's quite different from what you are used to in real-mode programs.
- Raw text -