[comp.sys.amiga.tech] Library not needed to share CIA timer data, just locate the interrupt

karl@sugar.uu.net (Karl Lehenbauer) (01/08/89)

We've been discussing that the CIA interrupt timer's count data needs to
be shared and I was saying that it needed a library, but I wrote the interrupt
routine to use the is_Data pointer as the pointer to the tick count, so
all one needs to do is find that.  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...
-- 
-- uunet!sugar!karl  | "We've been following your progress with considerable 
-- karl@sugar.uu.net |  interest, not to say contempt."  -- Zaphod Beeblebrox IV
-- Usenet BBS (713) 438-5018

papa@pollux.usc.edu (Marco Papa) (01/08/89)

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]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=