home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / rec / games / programm / 5145 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.1 KB  |  29 lines

  1. Newsgroups: rec.games.programmer
  2. Path: sparky!uunet!think.com!yale.edu!jvnc.net!phage!boutell
  3. From: boutell@isis.cshl.org (Tom Boutell)
  4. Subject: PC: Reprogramming Timer?
  5. Message-ID: <BzM71s.KEM@phage.cshl.org>
  6. Sender: news@phage.cshl.org
  7. Organization: Cold Spring Harbor Labs
  8. Date: Mon, 21 Dec 1992 15:01:04 GMT
  9. Lines: 18
  10.  
  11. OK, my game is coming along just lovely, I've got the keyboard reprogrammed
  12. (thanks to whoever posted that Pascal snippet for keyboard status, I
  13. ported it to Turbo C), Xlib is (mostly) cooperating. Now I need to get
  14. the timing right, but 18 ticks a second probably isn't going to suit
  15. my nefarious purposes. How can I reprogram the clock timer for a different
  16. rate? (I know I need to make it a multiple of the normal rate so I
  17. can invoke the normal handler every-so-many interrupts, but I don't
  18. know how to reprogram the timer, and I suspect I need to talk to the
  19. ports a bit at the end of the routine as well, etc.) Anyone have a 
  20. code sample? Pascal, assembly, C, swahili, whatever. Whatever it is,
  21. I'll port it. (:
  22.  
  23. -T
  24.  
  25. -- 
  26. Tom Boutell, boutell@cshl.org
  27.  
  28. Clausthaler is the best non - alcoholic beer in the known universe.
  29.