Date: Thu, 4 Jul 1996 16:20:13 +0200 (IST) From: Eli Zaretskii To: Alf Stockton Cc: djgpp AT delorie DOT com Subject: Re: segread() In-Reply-To: <199607041252.OAA01947@ohm.fast.co.za> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.