Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!beatyr From: beatyr@pur-ee.UUCP Newsgroups: comp.sys.ibm.pc Subject: Help! Writing TSR program Message-ID: <6313@pur-ee.UUCP> Date: Mon, 8-Jun-87 10:07:22 EDT Article-I.D.: pur-ee.6313 Posted: Mon Jun 8 10:07:22 1987 Date-Received: Wed, 10-Jun-87 07:16:38 EDT Reply-To: beatyr@ee.ecn.purdue.edu (Robert Beaty) Distribution: world Organization: Purdue University Engineering Computer Network Lines: 29 <<<<>>>> O.K. Here goes... I am writing a TSR program (or at least trying to), in Turbo Pascal. Basically it is a LAN over the serial port. I have no trouble getting the serial ISRs running and doing what I want, but I cannot find the location of the CGA TEXT screen memory. I know the graphics, but I want to save the text so when I pop-up I can restore it after I leave. On that same note, I need to know how to make a Turbo program TSR. I am familiar with ISRs and the fact that I need to intercept the keyboard interrupt vector to check for the hot key, but where can I find out exactly what I need to do? On a last note, I need to output to LPT1: INSIDE in ISR. Is this possible due to the non-reentrant nature of DOS, or is this possible? In closing then, I need help with: 1) How do I make a Turbo Pascal program or routine TSR? 2) How do I intercept the keycodes so that I can pop-up my TSR? 3) Where is the CGA text screen memory located, so I can save it? 4) Can I output to LPT1: inside an ISR? Thanks for all the help/pointers/examples/code sections that all of you can give me on this project. Bob B. ---------- ... ihnp4!pur-ee!beatyr <- usenet ... beatyr@ed.ecn.purdue.edu <- arpa-net ... beatyr@pur-ee.UUCP <- UUCP ----------