Path: utzoo!attcan!uunet!husc6!bloom-beacon!oberon!pollux.usc.edu!papa From: papa@pollux.usc.edu (Marco Papa) Newsgroups: comp.sys.amiga.tech Subject: Re: Library not needed to share CIA timer data, just locate the interrupt Message-ID: <14523@oberon.USC.EDU> Date: 8 Jan 89 07:45:14 GMT References: <3238@sugar.uu.net> Sender: news@oberon.USC.EDU Reply-To: papa@pollux.usc.edu (Marco Papa) Organization: Felsina Software, Los Angeles, CA Lines: 55 In article <3238@sugar.uu.net> karl@sugar.uu.net (Karl Lehenbauer) writes: > ... I don't seem to have the docs to >AddICRVector(), so perhaps someone could post the code to locate an interrupt ^^^^^^^^^^^^ >routine's is_Data pointer given its name... SYNOPSYS interrupt = AddICRVector(iCRBit, interrupt), resource D0 D0 A1 A6 FUNCTION Assign interrupt processing code to a particular interrupt bit of the CIA ACR. If the interrupt bit has already been assigned, this function will fail, and return a pointer to the owner interrupt. If it succeeds a NULL is returned. This function will also enable the CIA interrupt for the given ICR bit. INPUTS iCRBit - bit number to set (0..4) interrupt -- pointer to interrupt structure RESULT interrupt -- zero if successful, otherwise returns a pointer to the current owner interrupt structure. SEE ALSO RemICRvector -------- SYNOPSYS RemICRVector(iCRBit, interrupt), resource D0 A1 A6 FUNCTION Disconnect interrupt processing code for a particular interrupt bit of the CIA ICR. This function will also disable the CIA interrupt for the given ICR bit. INPUTS iCRBit -- bit number to set (0..4) interrupt -- pointer to interrupt structure Enjoy. -- Marco Papa 'Doc' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= uucp:...!pollux!papa BIX:papa ARPAnet:pollux!papa@oberon.usc.edu "There's Alpha, Beta, Gamma and Diga!" -- Leo Schwab [quoting Rick Unland] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=