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

  1. Path: sparky!uunet!dtix!darwin.sura.net!wupost!sdd.hp.com!caen!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!sm86+
  2. From: sm86+@andrew.cmu.edu (Stefan Monnier)
  3. Newsgroups: comp.sys.atari.st.tech
  4. Subject: Re: $118 ..
  5. Message-ID: <gebvnoi00VpF0FiV4C@andrew.cmu.edu>
  6. Date: 29 Aug 92 10:07:48 GMT
  7. References: <1992Aug26.114326.25188@prl.dec.com>
  8.     <1992Aug29.160554.17317@tdb.uu.se>
  9. Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
  10. Lines: 42
  11. In-Reply-To: <1992Aug29.160554.17317@tdb.uu.se>
  12.  
  13. Excerpts from netnews.comp.sys.atari.st.tech: 29-Aug-92 Re: $118 ..
  14. Daniel Eriksson@tdb.uu.s (1116)
  15.  
  16. > amos@prl.dec.com (Samos) writes:
  17. > : What is bad in touching to $fffc02 ?
  18. > : you do not need to write 2 or 3 differents routines
  19. > : in the 200Hz vector, keyboard vector and I don't know what else..
  20.  
  21. > Well, first of all you'll destroy all packages sent from the keyboard
  22. > processor since when you read/test $FFFFFC02 (for example) you'll also
  23. > 'tell' the keyboard processor to put a new value in the register. This
  24. > will cause the mouse/joystick to behave VERY strange. The only task that
  25. > should read/test $FFFFFC02 is the OS itself (or you should AT LEST never
  26. > let more than _one_ task read/test it)! So unless you rewrite the
  27. > whole OS-routine for keyboard-reading you shouldn't touch $FFFFFC02!!!
  28.  
  29. > One should ALWAYS be extremely careful when dealing with memory-mapped
  30. > registers from OS-friendly programs (and a screen-saver should be at
  31. > least 100% OS-friendly! :-).
  32.  
  33. > ---
  34. > Daniel Eriksson        Internet : m91der@tdb.uu.se, den@hgs.se
  35. > Gardskarsvagen 6B      Fidonet  : 2:205/229 (Doomdark's Revenge)
  36. > 814 93  SKUTSKAR       IRC      : ddf ('Daniel of Delta Force')
  37. > SWEDEN                 Voice    : +46 (0)26 72905 or 72901
  38.  
  39.  
  40. Another reason is that you just shouldn't use machine- or device-dependant
  41. tricks: who knows if this very same location will have the same purpose on,
  42. say, the Falcon ? or anything else ?
  43. The only case where it is useful, is when you WANT to write a machine-
  44. dependant program (such as an OS replacement)!
  45.  
  46. How nice it is to see YOUR program working on a completely unknown
  47. machine ! It is "jouissif" (don't worry, it is in french)
  48.  
  49.     Stefan Monnier
  50.  
  51.  
  52. -----------------------------------------------------
  53. -- On the average, people seem to be acting normal --
  54. -----------------------------------------------------
  55.