delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/30/06:11:59

Date: Sun, 30 Jan 2000 09:35:14 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: sam <samirw AT connection DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: How Do I catch a "printf interrupt" ?
In-Reply-To: <389354F6.F725C6F1@connection.com>
Message-ID: <Pine.SUN.3.91.1000130093454.17273G-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sat, 29 Jan 2000, sam wrote:

> Are you saying that if parent redirects int 21 to itself and calls another
> program, the startup code will redirect it back to dos?

No, the DJGPP startup code doesn't play any tricks with Int 21h.

For that matter, I don't recommend hooking Int 21h in a DJGPP program
at all.  It's tricky (requires real-mode callbacks, since Int 21h
isn't reflected to protected mode, and real-mode callbacks are
non-reentrant) and dangerous (since paging goes through Int 21h).

- Raw text -


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