home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!unipalm!uknet!edcastle!hwcs!neil
- From: neil@cs.hw.ac.uk (Neil Forsyth)
- Newsgroups: comp.sys.atari.st.tech
- Subject: Re: Intterrupts for screen saver ... OOOOOOPS
- Message-ID: <1992Aug26.090614.20140@cs.hw.ac.uk>
- Date: 26 Aug 92 09:06:14 GMT
- References: <1992Aug25.095216.27991@sci.kun.nl> <1992Aug25.113102.1754@prl.dec.com> <1992Aug25.114326.2044@prl.dec.com>
- Sender: news@cs.hw.ac.uk (News Administrator)
- Organization: Dept of Computer Science, Heriot-Watt University, Scotland
- Lines: 34
-
- In article <1992Aug25.114326.2044@prl.dec.com> amos@prl.dec.com (Samos) writes:
- >For the keyboard test, replace the tst.b $fffffc02.w by
- > tst.b $fffffc02.w
- > bmi.s .No_key
- > clr.l pointer
- >.No_key:
- > addq #1,pointer
- >
- >because when you bash a key, a byte between 0 and $7f is sent back
- >and when you remove your hand from the key (!) the same code+$80
- >is sent back..
-
- What is going on here? If you want to write a screen saver you should
- intercept the IKBD vetcor at $118 but the code that does so should not touch
- $FFFFFC02 at all! The fact that the interrupt has occurred is all the
- information that is required. Basically you could intercept the 200Hz clock
- vector ($114?) and just add 1 to your own private clock variable. When your
- clock var hits a predetermined limit you blank the screen. The IKBD intercept
- code just needs to zero the clock var and restore the screen if it's
- currently blanked. As long as there is IKBD activity (mouse or keyboard) then
- the clock will never reach the limit.
-
- Bung in XBRA's before your intercepts and put a cookie in the Cookie Jar so
- that the delay can be altered and well you've got something very similar to
- Ken Badertscher's Maccel3.
-
- +----------------------------------------------------------------------------+
- ! DISCLAIMER:Unless otherwise stated, the above comments are entirely my own !
- ! !
- ! Neil Forsyth JANET: neil@uk.ac.hw.cs !
- ! Dept. of Computer Science ARPA: neil@cs.hw.ac.uk !
- ! Heriot-Watt University UUCP: ..!ukc!cs.hw.ac.uk!neil !
- ! Edinburgh, Scotland, UK "That was never 5 minutes!" !
- +----------------------------------------------------------------------------+
-