www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/27/14:48:56

Message-ID: <388F8BCF.B3B9D23F@geocities.com>
From: Sahab Yazdani <beyonder69 AT geocities DOT com>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How Do I catch a "printf interrupt" ?
References: <86n3vr$dll$1 AT nnrp1 DOT deja DOT com>
Lines: 30
Date: Wed, 26 Jan 2000 19:05:35 -0500
NNTP-Posting-Host: 209.103.51.152
X-Complaints-To: abuse AT sprint DOT ca
X-Trace: newscontent-01.sprint.ca 948931836 209.103.51.152 (Wed, 26 Jan 2000 19:10:36 EST)
NNTP-Posting-Date: Wed, 26 Jan 2000 19:10:36 EST
Organization: Sprint Canada Inc.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

i think that you shouldn't try trap the interrupt but to pipe the output
of the program to yours and then whenever the stdout stream has new
content do whatever you want to it..  I believe that this is how RHIDE
does it with GCC and Make...

arcadepreserv AT hotmail DOT com wrote:
> 
> I am doing a frontend to an MSdos application, i.e. another msdos
> application is started from my frontend, and I need to decode the
> output from this application.
> 
> I think it is possible to trap a interrupt that accurs when a call to
> printf is made, and then read the string a pointer is pointing to.
> 
> Could anyone tell me how to set up this trap, and what interrupt to use
> and what the registers hold, or perhaps there are some good URL:s for
> this ?
> 
> I program in djgpp.
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.

-- 
***********************************************************
* Sahab Yazdani * "We are all who we are, no more and no  *
* Thornhill S.S * less" - al'Lan Mandragoran              *
***********************************************************
* http://pheonixware.8m.com/                              *
***********************************************************

- Raw text -


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