home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!network.ucsd.edu!ucsbcsl!mcl!umage
- From: umage@mcl.ucsb.edu (Vorpal Greed)
- Newsgroups: alt.sys.amiga.demos
- Subject: Interrupt vectors.. still.
- Message-ID: <umage.713636144@mcl>
- Date: 12 Aug 92 16:15:44 GMT
- Sender: root@ucsbcsl.ucsb.edu
- Lines: 26
-
- OK.
- I've been messing with this stuff for a long time, and still have questions.
- How come, if i replace an interrupt vector (take an easy one like the keybd)
- with a routine that first executes itself, then calls the system's routine,
- which is then tricked via stack into returning to another part of my routine,
- stuff goes wrong?
- Or say the vblank interrupt? Just doa simple one, like first put yellow in
- color 0, then let the system twiddle, then put red in color zero. - You'll
- get red up avbove workbench sure enough, but you won't be able to drag screens
- around! HMM... Is the system playing naughty ?
-
- Also i found a cool trick for when you write a routine that returns success
- or failure.. I used to stick the return code in d0 or someplace, but it's
- just a easy to stick em in the ccr ! That way, you can do:
- bsr myroutine
- beq ok
- bpl err1
- bmi err2
-
- ps. the stack stuff is not a problem, just a curiosity.
-
- --
- -----------------------eom------------------------------
- The facts and opinions presented here are not mine. They
- belong to the U C Regents, who take full responsibility.
- ----------t---h---e----r--e---a---l-----eom-------------
-