Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!ll-xn!ames!pasteur!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga.tech Subject: Re: Parallel port interrupt server (more info) Message-ID: <8804300045.AA17523@cory.Berkeley.EDU> Date: 30 Apr 88 00:45:55 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 33 Ok, found my manuals. Here is an overview (read the manual pages for more info): (1) OpenResource() the "misc.resource" (2) Call AllocMiscResource() for the MR_PARALLELPORT and MR_PARALLELBITS to ensure nobody else is using them. (3) OpenResource() the "ciaa.resource" to get access to the interrupt bits. (4) AddICRVector() the FLAG interrupt to your interrupt server (stuff) (5) RemICRVector() the FLAG interrupt (6) FreeMiscResource() MR_PARALLELPORT and MR_PARALLELBITS AddICRVector() offset -6 from cia?.resource base RemICRVector() offset -12 from cia?.resource base AbleICR() offset -18 from cia?.resource base SetICR() offset -24 from cia?.resource base AllocMiscResource() offset -6 from misc.resource base FreeMiscResource() offset -12 from misc.resource base See , AUTODOCS: misc.doc, cia.doc The interrupt is automatically enabled on AddICRVector() and disabled on RemICRVector(). And, of course, AddICRVector() fails if the interrupt is already allocated. -Matt