Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!ames!xanth!indri!dogie.macc.wisc.edu!uwvax!astroatc!nicmad!madnix!schaut From: schaut@madnix.UUCP (Rick Schaut) Newsgroups: comp.sys.ibm.pc Subject: Re: Help with sharing memory in DOS... Summary: Try the ICA. Message-ID: <709@madnix.UUCP> Date: 15 Jul 89 04:02:36 GMT References: <2752@blake.acs.washington.edu> Reply-To: schaut@madnix.UUCP (Rick Schaut) Distribution: usa Organization: ARP Software, Madison, WI Lines: 28 In article <2752@blake.acs.washington.edu> mtsu@blake.UUCP (Montana State) writes: >I have written a TSR that reads characters off of the comm port, filters them, >and saves the important information in a buffer allocated inside the TSR. > >Suppose the buffer name is 'aldsdata', TSR name is 'x100'... Now I want to >write a program to yank the data out of 'aldsdata', from the foreground... > >How do I find the address of 'aldsdata' inside the TSR?? Have the TSR place the addres of 'aldsdata' in the 'Intra-application Communications Area" (ICA). This is a sixteen byte area located at address 0040:00F0H. I suggest that you also include a checksum so that the foreground program will know if the pointer has been corrupted. (The source fo this information is _The New Peter Norton Programmer's Guide to the IBM PC & PS/2_, p. 62) >You know, this whole problem would be trivial if DOS was Unix... But then you wouldn't have TC 2.0 to play with. Real world choices are never easy. -- Richard Schaut Madison, WI Madison: an alternative ArpaNet: madnix!schaut@cs.wisc.edu to reality. UseNet: ...uwvax!astroatc!nicmad!madnix!schaut {decvax!att}!