www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/02/07/17:18:10

From: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
To: DJGPP AT sun DOT soe DOT clarkson DOT edu
Date: Tue, 7 Feb 1995 16:45:09 GMT
Subject: using _farns*() (was: Re: Funny error in class)

dj AT stealth DOT ctron DOT com (DJ Delorie) wrote:-

> ...be warned that your functions can't GUARANTEE that the segment registers
> have the right values. The _farns* functions were intended to be used in an
> enclosed function, like one that loops through a chunk of video memory,
> where you know that there's no opportunity for someone else to use a _far*
> function. All it takes is someone calling _far* (say, to get a BIOS value)
> and you're toast.

(1) I am very sorry to keep on troubling you.
(2) On entering the `enclosed function', before any _farns*() calls in that
enclosed function, how do I make sure that the segment registers are correct
for the _farns*() calls in that call of that enclosed function?
(3) Does `someone else' hereinabove mean `some other function in that
program', or is there a reference to multi-user computers, or what?

- Raw text -


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