home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / atari / st / tech / 4573 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  2.3 KB

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