www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/07/19/13:59:50

Date: Mon, 19 Jul 93 13:32:54 EDT
From: DJ Delorie <dj AT ctron DOT com>
To: iclone!mjhostet AT cs DOT unm DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: How to load ES in protected mode?

For all the BIOS calls that go32 knows about, you must use the offset
register as a 32-bit offset, and leave the segment registers alone.
For all BIOS functions that go32 does not understand, you can't call
them anyway.  It's the extender's responsibility to convert from a
32-bit pointer to a 16-bit segment:offset for you.  Effectively, there
are no "segments" per se in go32's protected mode, so you never need
to worry about segment registers.

Since real mode pointers can't point to virtual memory anyway (the
memory might be out on disk somewhere), there's really no way to make
it work the way you think it should.

DJ

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019