🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1478

PC: Reprogramming Timer?

#1478
From: Tom Boutell
Date: Mon, 21 Dec 1992 15:01
18 lines
1177 bytes
OK, my game is coming along just lovely, I've got the keyboard reprogrammed
(thanks to whoever posted that Pascal snippet for keyboard status, I
ported it to Turbo C), Xlib is (mostly) cooperating. Now I need to get
the timing right, but 18 ticks a second probably isn't going to suit
my nefarious purposes. How can I reprogram the clock timer for a different
rate? (I know I need to make it a multiple of the normal rate so I
can invoke the normal handler every-so-many interrupts, but I don't
know how to reprogram the timer, and I suspect I need to talk to the
ports a bit at the end of the routine as well, etc.) Anyone have a 
code sample? Pascal, assembly, C, swahili, whatever. Whatever it is,
I'll port it. (:

-T

-- 
Tom Boutell, boutell@cshl.org

Clausthaler is the best non - alcoholic beer in the known universe.
Technical Details
Message-ID: <BzM71s.KEM@phage.cshl.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!yale.edu!jvnc.net!phage!boutell

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!yale.edu!jvnc.net!phage!boutell
From: boutell@isis.cshl.org (Tom Boutell)
Subject: PC: Reprogramming Timer?
Message-ID: <BzM71s.KEM@phage.cshl.org>
Sender: news@phage.cshl.org
Organization: Cold Spring Harbor Labs
Date: Mon, 21 Dec 1992 15:01:04 GMT
Lines: 18