----- Original Message ----- From: Scott Dattalo To: Sent: Sunday, April 16, 2000 8:30 AM Subject: Re: Simultaneous Interrupts > On Sun, 16 Apr 2000, Rob Zero wrote: > > > Software. Its done by writing to your option register. > > > > Rob > > Rob, > > It's actually hardware. When an interrupt occurs, the GIE bit in the option > register is cleared automatically by hardware. If it weren't, then an infinite > loop would occur everytime an interrupt happened. That's bad. Now if you wish to > inhibit interrupts, then of course you can clear GIE with software. Okay, this is how I have been told to do it is to inhibit further interrupts until the code processing routine for the first interrupt is completed, then when you loop back to the main routine you re-enable interrupts and begin processing again.. I guess its easier to follow them this way, but perhaps it isnt the *best* way either.. Easier to debug anyhow! ;) Thanks! Rob