delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/04/09:27:00

Date: Thu, 4 Jul 1996 16:20:13 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Alf Stockton <stockton AT fast DOT co DOT za>
Cc: djgpp AT delorie DOT com
Subject: Re: segread()
In-Reply-To: <199607041252.OAA01947@ohm.fast.co.za>
Message-Id: <Pine.SUN.3.91.960704161515.24511C-100000@is>
Mime-Version: 1.0

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 -


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