Mail Archives: djgpp/1996/07/04/09:27:00
On Thu, 4 Jul 1996, Alf Stockton wrote:
> The source of the BTRV function includes a call to segread() which is
> defined in dos.h for both Microsoft and Borland. However I can't find an
> equivalent in DJGPP.
You don't need `segread' on DJGPP.  It is used on 16-bit compilers to get 
the values of segment registers before calling real-mode DOS or BIOS 
services.  These chores are done differently in DJGPP, so instead of 
writing a substitute for `segread' you should rewrite the entire fragment 
that calls the real-mode service in a way that will work from DJGPP.
The DJGPP FAQ list (available as v2/faq200b.zip from the same place you 
get DJGPP) explains how to call real-mode services in sections 18.1 to 
18.5; I suggest you read them.
- Raw text -