Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!RYERSON.BITNET!ACPS5589 From: ACPS5589@RYERSON.BITNET (George Borges) Newsgroups: comp.sys.atari.st Subject: Mfpint() Message-ID: <8902140121.AA03228@ucbvax.Berkeley.EDU> Date: 13 Feb 89 18:53:35 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 28 ----------------------------Original message---------------------------- Thanks to those two folks who replied to me. However, I *still* cannot get Mfpint() to work properly. Perhaps I am somewhat dense. Here's what I'm trying to do: .... Jenabint( 14 ); /* enable ring indicator interrupt on MFP chip */ Mfpint( 14, interrupt ); /* set vector to point to my function */ ... print stuff on screen in endless loop.... interrupt() { setrte(); /* in MWC 2.0 .. return from exception rather than rts */ Cconws("RING!!!"); } ..... And that's basically it. I disable the interrupt after it occurs. The interrupt routine *does* execute but my program bombs (usually 2 or 3 of them). Can a knowledgeable soul help a fellow cretin in need? A fragment of working C code would be most appreciated. Thanx George Borges