Mail Archives: djgpp/1997/01/22/02:03:49
On Tue, 21 Jan 1997, Gene Buckle wrote:
> > Once upon a time (on 20 Jan 97 at 23:35) Gene Buckle said:
> >
> > > Of all the great examples I've found for writing IRQ handlers, I've not seen
> > > one that documents how to pass a parameter (specifically a pointer to a
> > > structure) to the installed routine.
> > The only way I can see is through shared (and locked!) memory.
>
> The whole program is locked in memory via the CRT0 flags. My problem is
> that the program calling the interrupt (0xef in this case) won't be the
> same one that has the code for the actual ISR in it. ;)
Allocate some DOS memory and pass the data through that buffer. You will
have to devise a mechanism to publish the address of that buffer, so the
program which allocated them could tell the address to the other programs.
One possibility to pass this address is an environment variable; another
is a disk file.
- Raw text -