delorie.com/archives/browse.cgi | search |
From: | Leif <LeifDude AT hotmail DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Need help with interrupts! |
Date: | Thu, 17 Sep 1998 15:36:44 -0700 |
Organization: | NorthWest Nexus Inc. |
Lines: | 19 |
Message-ID: | <36018EFC.11D4@hotmail.com> |
References: | <36013C75 DOT 5342 AT swipnet DOT se> |
NNTP-Posting-Host: | blv-pm105-ip19.halcyon.com |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
> 1. How do I hook my own handler to an interrupt? Put the address of yer Handler in the appropriate InteruptVectorTable location. Mask the PIC accordingly to make yer IRQ active. > 2. Can I use all the 256 entries in the handler list? Sure. BUT: some of them might be important to yer operating system. Be careful. > 3. Can I trigger an interrupt in software? Yup. If you using say InteruptVector 0x71 just call it like a software interupt.. int86(0x71,&Regs,&Regs); Sorry, I dont have time to go into details right now. Try to find some example code somewhere. If U want U can EMail me at LeifDude AT Hotmail DOT com and I will send U some code for a ModemHandler. It might help U get going.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |