Date: Sun, 20 Feb 2000 16:25:06 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Thorsten Erdmann cc: djgpp AT delorie DOT com Subject: Re: How to create an interrupt service routine In-Reply-To: <88oenb$9cd$1@ac1.ewetel.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk On Sun, 20 Feb 2000, Thorsten Erdmann wrote: > does anyone have a little code sample which shows how to create an ISR which > is able to communicate with the main program via a global variable. I need > an ISR for the printer port (IRQ7), which reads data from a global buffer > and writes them to the printer port. Do you need to write a TSR with DJGPP? That's not easy at all, since it requires DPMI 1.0 features. You can only do that with CWSDPMI (and perhaps 386Max). An example of how to do it is available; let me know if you want the URL (I don't have it handy).