Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!oberon!pollux.usc.edu!papa From: papa@pollux.usc.edu (Marco Papa) Newsgroups: comp.sys.amiga.tech Subject: Re: CBM, Why did you make it so hard? Keywords: Graphics Libraries, reentrancy Message-ID: <15859@oberon.USC.EDU> Date: 15 Mar 89 10:50:26 GMT References: <913@dover.uucp> <6279@cbmvax.UUCP> Sender: news@oberon.USC.EDU Reply-To: papa@pollux.usc.edu (Marco Papa) Organization: Felsina Software, Los Angeles, CA Lines: 21 In article <6279@cbmvax.UUCP> jesup@cbmvax.UUCP (Randell Jesup) writes: >In article <913@dover.uucp> fullmer@dover.UUCP (Glen Fullmer) writes: >>3. How does one restore the environment, for example, after an interrupt? > > Are you writing interrupt handlers?? I think they're well documented; >I highly advise NOT writing interrupt handlers in anything but ASM. On this one I disagree. Carl Sassenrath clearly shows that it is not really a big deal to write the interrupt handler in C (a least in MANX). You just have to know which registers have to be saved and what register does what (so you can pass the values on the stack, Matt taught me this one). MANX provides the proper entry/exit routines (int_start, int_end). I don't know about Lattice, but I don't see how more difficult it could be. The Guru's Guide is definitely very helpful for the adventurous. I wish the contents of the Guide was part of the CBM docs. -- 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] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=