From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Disabling interrupts ? Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <8q2hfc$v9$1 AT info DOT cyf-kr DOT edu DOT pl> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 24 X-Trace: /K0ZEBY8dCnrOe9DqPS22JDq8ljIcOTBC40lw/pqsdX0ERRd5cbVmH7dvwrbiezQuEy4lvZB5le0!bSuCczMB9oTnS7dyfZWKqxGHehPryYKMEyGY8WezOiQemLLm2oselvsB3JjNr2D6wsRHsxS0qzkk!QA== X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Mon, 18 Sep 2000 13:20:39 GMT Distribution: world Date: Mon, 18 Sep 2000 13:20:40 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sun, 17 Sep 2000 15:37:47 +0200, "Rafał Maj" wrote: >Hi, >>>>>>>>> Is there any way in DJGPP to disable all interrupts : >I want to write function like : > >void critical_error(int code) { > disable_interrupts(); // ??? > textmode(C80); > /*...*/ > _exit(code); >} Normally, for this, you simply call allegro_exit(). It unhooks the interrupts and turns off graphics mode. --